Re: Alias's original item
Re: Alias's original item
- Subject: Re: Alias's original item
- From: John Delacour <email@hidden>
- Date: Fri, 20 Jun 2003 22:47:03 +0100
- Mac-eudora-version: 6.0a23
At 2:25 pm -0500 19/6/03, Wallace, William wrote:
Does anybody know of a way I can use applescript (either on its own or via a
3rd party scriptable utility or osax) to examine an alias (which will most
likely be pointing to a file on a network server) and get the path to its
original item *WITHOUT* having to mount the remote volume upon which the
original resides?
The information you need will be contained in the result of a shell
script like this:
/Developer/Tools/./DeRez ~/Library/Favorites/HTML\ 4.0 -only 'alis'
But before Emmanuel rushes in to give the REAL answer, here it is:
* SATIMAGE OSAX *
I have an alias file in Favorites pointing to the about.html in HTML
4.0 site. Here's how I get the path of the original:
set f to "" & (path to "cusr") & "Library:Favorites:HTML 4.0"
load resource 0 type "alis" from file f
--> alias "dx:Users:jd:Documents:tut:HTML:html 4.0:about.html"
JD
.
_______________________________________________
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.