• 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: Spaces in file paths under OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Spaces in file paths under OS X (From: Kirill Kortchagin <email@hidden>)

  • Prev by Date: Spaces in file paths under OS X
  • Next by Date: String to multiple-item list coercion
  • Previous by thread: Spaces in file paths under OS X
  • Next by thread: Re: Spaces in file paths under OS X
  • Index(es):
    • Date
    • Thread