Re: What makes AppleScript difficult
Re: What makes AppleScript difficult
- Subject: Re: What makes AppleScript difficult
- From: "Gary (Lists)" <email@hidden>
- Date: Wed, 05 Dec 2007 20:19:20 -0500
- Thread-topic: What makes AppleScript difficult
"Skeeve" wrote:
> I still don't know how to conveniently handle filenames of files
> that don't yet exist
That's a red herring. Or a black hole. Or a white elephant.
If a file doesn't exist, then it can't possibly have a name.
An 'alias', which implies (by its name) a reference to something else, must,
therefore, exist before you can call it an 'alias'.
You are talking about 'strings'. Filenames of files that don't exist are
just that: strings.
So, you are not experiencing a problem of AppleScript, but a problem of your
conceptualization of what is a file, what is a string and what is a thing
that refers to a thing (an alias.)
'POSIX path' is meant to give a potentially valid posix/unicode string
version of a (potential) path. It's up to you to know whether or not that
thing at the end of the path actually exists already.
Make sense? ;)
Key Point WRT AppleScript: any time you say 'alias' that thing MUST already
exist.
--
Gary
_______________________________________________
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