• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help -- going posix space crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Help -- going posix space crazy (From: Marc Glasgow <email@hidden>)

  • Prev by Date: Re: Help -- going posix space crazy
  • Next by Date: Re: Help -- going posix space crazy
  • Previous by thread: Re: Help -- going posix space crazy
  • Next by thread: Re: Help -- going posix space crazy
  • Index(es):
    • Date
    • Thread