Re: Evaluating if a file exists
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