• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 7 May 2007 10:34:09 -0700

On May 7, 2007, at 10:22 AM, Emmanuel wrote:

At 1:08 PM -0400 5/7/07, email@hidden wrote:

set theDestFolder to alias "DONNELLY:Users:andrewd:Desktop:TheDestFolder:"
[...}
if not (exists file (theDestFolder & x as string)) then

That was not your question, and I may very well be missing something, but I'm surprised that this could work: I can't see what Finder (or AppleScript) will do when asked to concatenate an alias with a string. For me, that very line should make an error.

Don't forget, "&" means list concatenation as well. The result of "alias & text" is {alias, text}. Will Finder be able to do anything sensible with that, no, but it's semantically valid.



--Chris Nebel AppleScript Engineering

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

  • Prev by Date: Re: Evaluating if a file exists
  • Next by Date: Re: PDF File says in use by Mac OS X
  • Previous by thread: Re: Evaluating if a file exists
  • Next by thread: Re: Evaluating if a file exists
  • Index(es):
    • Date
    • Thread