Saturday, July 4, 2020

#1 2002-04-21 01:23:37 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Scripting Terminal

I've found the easiest way (and safest!) is to always put single-quotes around the path. That is, of course, unless you have single quotes in the file name. Ack

Example:

Applescript:

do shell script cp '~/Library/.StickiesDatabase' '/Volumes/30 GB Firewire HD/.StickiesDatabase'

Well, best thing is to check whatever path you put in, to make sure it is has no quotes and quote it, or escape quotes, spaces, etc if it does. I generally started leaving out spaces and quotes, slashes, etc a few years ago anyway, so that anything I did on my Mac would be cross-platform compatible. Especially important if working on websites. I use alpha-numerics, dots, dashes, and underscores. Oh well.


Many (belated) thanks, that seems to have done the trick!


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)