Re: Aliases in paths not resolved....????
Re: Aliases in paths not resolved....????
- Subject: Re: Aliases in paths not resolved....????
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 19 Nov 2002 16:47:36 -0500
At 4:03 PM +0100 11/19/02, Axel Luttgens wrote:
Sam Griffith wrote:
Help,
I have a script that creates a path to a folder.
set theAlias to (((path to "cusr") as string) & "MyDevelopment:My
Scripts:AppleScripts:scriptsCallingScripts:callme") as alias
The issue is that the "MyDevelopment" folder is actually a alias to the
folder on another disk.
How do I get this to resolve correctly, so that AppleScript sees my file?
Right; there is no real equivalent to link(s) resolution during unix
path parsing.
So, you have to resolve the alias yourself.
One way that to do this is to use the "original item" property of
Finder's alias file class; something like this:
tell application "Finder" to
set myDevPath to original item of
alias (((path to "cusr") as string) & "MyDevelopment")
as alias as string
should do the job.
You could then use the resulting string as you did above.
When I tried "original item of" on an alias for an unmounted volume,
it returned nothing (or missing value or "" - I don't recall). -- OS
X 10.2.2 --
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.