Re: File exists on a posix path
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