• 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: File exists on a posix path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File exists on a posix path


  • Subject: Re: File exists on a posix path
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 13 Feb 2006 12:13:10 -0700
  • Thread-topic: File exists on a posix path

Title: Re: File exists on a posix path
I discovered you can reverse the output of the command by using a “!” character in it:

set filePath to "/Users/"

set cmd to "test ! -e '" & filePath & "';echo $?"
(do shell script cmd) as integer as boolean

It seems like the “as integer as boolean” part is redundant, I wonder why Applescript does not recognize a boolean as a true or false if it is operating on a string digit?

-- Gnarlie
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: File exists on a posix path (From: Bastiaan Boertien <email@hidden>)

  • Prev by Date: Re: File exists on a posix path
  • Next by Date: Re: File exists on a posix path
  • Previous by thread: Re: File exists on a posix path
  • Next by thread: Re: File exists on a posix path
  • Index(es):
    • Date
    • Thread