How can I get the name of a deleted original item of an alias?
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