Re: Evaluating if a file exists
Re: Evaluating if a file exists
- Subject: Re: Evaluating if a file exists
- From: Luther Fuller <email@hidden>
- Date: Mon, 7 May 2007 12:24:35 -0500
And you might also want to try ...
if not (exists item x of theDestFolder) then
This assumes that x is (unicode) text and 'theDestFolder' is an alias.
On May 7, 2007, at 12:15 PM, KOENIG Yvan wrote:
Le 7 mai 07 à 19:08:29, email@hidden a écrit :
From my point of vue the culprit is this line:
if not (exists file (theDestFolder & x as string)) then
because in your script theDestFolder is an alias.
try to code:
if not (exists file ((theDestFolderas text) & x)) then
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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