• 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: do shell script gotcha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script gotcha


  • Subject: Re: do shell script gotcha
  • From: "Daniel A. Shockley" <email@hidden>
  • Date: Thu, 27 Feb 2003 14:20:16 -0500

Change that one line to:
do shell script "test -e " & quoted form of POSIX path of myFile

or you will get big problems with any file that has spaces.

To: email@hidden
From: Donald Hall <email@hidden>

try
do shell script "test -e " & POSIX path of myFile
on error
-- myFile doesn't exist, must create it
end try



--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
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.

  • Prev by Date: Re: applescript-users digest, Vol 3 #1389 - 13 msgs
  • Next by Date: click "OK" button
  • Previous by thread: Re: do shell script gotcha
  • Next by thread: Moving a file and changing its name in X
  • Index(es):
    • Date
    • Thread