Re: Does a filepath exist?
Re: Does a filepath exist?
- Subject: Re: Does a filepath exist?
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 22 Aug 2007 07:22:40 -0400
try
POSIX file (yourVariableHere) as alias
set fileExists to true
on error
set fileExists to false
end
It will throw an e
On 8/22/07, Patrik B. <email@hidden> wrote:
> What is the quickest way of checking if a filepath is valid and getting a
> true or false on this?
>
> I have a list of posix paths and before I run my other script I want to check
> if these paths are valid. Any idea?
>
> Patrik
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden