Re: Checking on the existence of a file
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