• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: path to a file from an alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: path to a file from an alias
      • From: Ronald Hofmann <email@hidden>
References: 
 >path to a file from an alias (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: path to a file from an alias
  • Next by Date: Re: path to a file from an alias
  • Previous by thread: path to a file from an alias
  • Next by thread: Re: path to a file from an alias
  • Index(es):
    • Date
    • Thread