Re: Using "original item" property on aliases from a network share
Re: Using "original item" property on aliases from a network share
- Subject: Re: Using "original item" property on aliases from a network share
- From: Axel <email@hidden>
- Date: Thu, 25 Jun 2009 10:40:00 +0200
Le 24/06/2009 19:17, Emmanuel LEVY a écrit :
The only way I know to work with the volume's name of an AFP mount is
the following strategy: search /Volumes/ (use do shell script "ls
/Volumes") for myHD, myHD-1, myHD-2 etc until you find your volume. If
you have several volumes with the same name the only way to figure out
which is which is to check for a known file.
Emmanuel
I managed to resolve aliases on network volumes with the following code :
on run argv
set curfile to alias (POSIX file (item 1 of argv) as text)
tell application "Finder"
set origfile to original item of (curfile)
end tell
return POSIX path of (origfile as text)
end run
Thanks for your answers.
_______________________________________________
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