Re: Help -- going posix space crazy
Re: Help -- going posix space crazy
- Subject: Re: Help -- going posix space crazy
- From: James Robinson <email@hidden>
- Date: Fri, 21 Feb 2003 16:46:01 -0600 (CST)
On Fri, 21 Feb 2003, Marc Glasgow wrote:
>
The following works as long as the path doesn't have any spaces in the
>
names -- then add spaces, and I get a format error for the mv command.
>
Any insight appreciated. Complete text of the minimized testing script
>
is at:
Command line programs like mv use spaces to delimit arguments (in the
case of mv, filenames), which is why spaces in filenames confuse them.
To remove the ambiguity, so that it's clear where the names begin and
where they end, you have to escape every space with a backslash (so that
it's read as a literal space), or encase the filenames in single quotes.
To move "My File" from your home directory to a subfolder called "My
Folder", you would build the following commands.
Either:
mv ~/My\ File ~/My\ Folder\ Name/My\ File
or:
mv '~/My File' '~/My Folder/My File'
Hope this helps,
--
James
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.