• 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: Does a filepath exist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Does a filepath exist?
      • From: Emmanuel <email@hidden>
References: 
 >Does a filepath exist? (From: "Patrik B." <email@hidden>)

  • Prev by Date: Does a filepath exist?
  • Next by Date: Re: Does a filepath exist?
  • Previous by thread: Does a filepath exist?
  • Next by thread: Re: Does a filepath exist?
  • Index(es):
    • Date
    • Thread