Re: Spaces in file paths under OS X
Re: Spaces in file paths under OS X
- Subject: Re: Spaces in file paths under OS X
- From: Matthew Smith <email@hidden>
- Date: Fri, 20 Sep 2002 17:07:20 +1000
on 20/09/2002 16:29, Kirill Kortchagin at email@hidden wrote:
>
On executing next command:
>
do shell script "rm /Users/ahapupok/Library/Preferences/Application
>
Support/some_file_name"
>
>
I got an error sounds like:
>
File or folder not found "/Users/ahapupok/Library/Preferences/Application"
>
>
When I using "delete" of application "Finder" it works right ;)
You either need to quote the file name or escape the spaces.
do shell script "rm \"/Users/ahapupok/Library/Preferences/Application
Support/some_file_name\""
or
do shell script "rm /Users/ahapupok/Library/Preferences/Application\\
Support/some_file_name"
--
Matthew Smith
_______________________________________________
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.