• 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: Checking on the existence of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking on the existence of a file


  • Subject: Re: Checking on the existence of a file
  • From: "koenig.yvan" <email@hidden>
  • Date: Fri, 26 Oct 2012 18:53:50 +0200


Le 26/10/2012 à 18:40, Eric Robertson <email@hidden> a écrit :


Thanks for these alternative ways of using 'exists' which I've taken a note of - I see all of them use either Finder or System Events.

Eric.

In fact, I don't remember who described an alternative which doesn't require triggering Finder of System Events.

It's :

try
"Macintosh HD:Users:trucmuche:Desktop:machinChose.pdf:" as alias
set isAvailable to true
on error
set isAvailable to false
end try

but, Christopher Nebel from AppleScript Engineering warned us several times against this scheme.
It's only to underline these warnings that I repeat it here.

Yvan KOENIG (VALLAURIS, France) vendredi 26 octobre 2012 18:53:38


 _______________________________________________
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

References: 
 >Re: Checking on the existence of a file (From: Eric Robertson <email@hidden>)

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: New File Here
  • Previous by thread: Re: Checking on the existence of a file
  • Next by thread: Re: Checking on the existence of a file
  • Index(es):
    • Date
    • Thread