• 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
How can I get the name of a deleted original item of an alias?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I get the name of a deleted original item of an alias?


  • Subject: How can I get the name of a deleted original item of an alias?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Mon, 31 Aug 2015 08:14:07 -0400

If I have an alias file, "aliasFile", whose original item has been deleted or is otherwise unavailable, I can still see the name of the original item in both the finder's "Get Info" window and the property list returned by

	tell application "finder" to get properties of aliasFile

However

	tell application "finder" to get original item of aliasFile

fails because the finder tries to resolve the name to the actual file.

How can I get the script to return the name of the original item if the file itself is missing? (Other than resorting to GUI Scripting).

inb4 "Why would you want to do that?"

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


  • Follow-Ups:
    • Re: How can I get the name of a deleted original item of an alias?
      • From: Shane Stanley <email@hidden>
    • Re: How can I get the name of a deleted original item of an alias?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: How to set application which opens a file via Applescript?
  • Next by Date: Re: How can I get the name of a deleted original item of an alias?
  • Previous by thread: Re: How to set application which opens a file via Applescript?
  • Next by thread: Re: How can I get the name of a deleted original item of an alias?
  • Index(es):
    • Date
    • Thread