• 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: Ronald Hofmann <email@hidden>
  • Date: Sun, 11 Jul 2004 13:03:02 +0200

Hi Axel,
very nice, thank you. That was really easy. Stupid me didn't think of that.

Ronald
=============================
Am 11.07.2004 um 12:41 schrieb Axel Luttgens:

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.
_______________________________________________
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.


References: 
 >path to a file from an alias (From: Ronald Hofmann <email@hidden>)
 >Re: path to a file from an alias (From: Axel Luttgens <email@hidden>)

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