Fwd: Even more newbie queries: aliases
Fwd: Even more newbie queries: aliases
- Subject: Fwd: Even more newbie queries: aliases
- From: Michelle Steiner <email@hidden>
- Date: Sun, 28 Apr 2002 19:42:20 -0700
Begin forwarded message:
From: Michelle Steiner <email@hidden>
Date: Sun Apr 28, 2002 07:08:52 PM America/Phoenix
To: Michael Kelly <email@hidden>
Subject: Re: Even more newbie queries: aliases
On Sunday, April 28, 2002, at 06:43 PM, Michael Kelly wrote:
What is the difference between the following:
set myVar to "path:to:something" as alias
set myVar to alias "path:to:something"
Don't they both make myVar into an alias to "path:to:something"? Even
though
the file exists, the first one fails OMM, while the second one
doesn't. Can
anyone explain what's going on here? To me it seems like both
statements are
the same -- they only do things in a different order.
I think you may have a spelling error in the first one; if the second
one compiles, the first one should also compile.
The difference between the two is that the second one tries to resolve
the alias at compile time, and the first tries to resolve the alias at
run time. So, if the file or folder doesn't exist, the first one will
compile, but fail when you run the script, whereas the second will fail
when you try to compile the script.
Hope this helps.
--Michelle
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.