• 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: Evaluating if a file exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Evaluating if a file exists (From: email@hidden)
 >Re: Evaluating if a file exists (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Evaluating if a file exists
  • Next by Date: Re: Evaluating if a file exists
  • Previous by thread: Re: Evaluating if a file exists
  • Next by thread: Re: Evaluating if a file exists
  • Index(es):
    • Date
    • Thread