Re: path to a file from an alias
Re: path to a file from an alias
- Subject: Re: path to a file from an alias
- From: Axel Luttgens <email@hidden>
- Date: Sun, 11 Jul 2004 12:41:53 +0200
Ronald Hofmann wrote:
Hi everybody,
I have myPath which is the path to an alias.
But I need the path to the original file.
Does somebody know a way to do this?
This task sounds very simple but I just can't figure out how to do it.
The Finder dictonary has an entry for class "alias file":
Class alias file: An alias file (created with Make Alias)
Plural form:
alias files
Properties:
<Inheritance> file [r/o] -- inherits some of its properties from the
file class
original item reference -- the original item pointed to by the alias
So, you may ask for the "original item" of a file:
tell application "Finder" to get original item of <somefile>
where <somefile> is a reference (aka file "somefile" of folder
"somefolder"..., or alias "Somedisk:somefolder:...") to a file
HTH,
Axel
_______________________________________________
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.