Retrieve the original path from a broken alias

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulclaude
Posts: 121
Joined: Thu Mar 27, 2008 10:19 am

Retrieve the original path from a broken alias

Post by paulclaude »

Hi,
Having a list of aliases, I need to detect which one has a broken target path and I need also to get this path. With aliasReference I can't retrieve a broken target path, nor with "original item" of Applescript.

Any suggestion?

Thanks

Paul
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Retrieve the original path from a broken alias

Post by Mark »

Hi Paul,

Here you will find some useful suggestions and here you'll find more suggestions including source code to create your own command line tool. I think this tool is exactly what you need. You might adjust the source code to make an external.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
paulclaude
Posts: 121
Joined: Thu Mar 27, 2008 10:19 am

Re: Retrieve the original path from a broken alias

Post by paulclaude »

Mark wrote:Hi Paul,

Here you will find some useful suggestions and here you'll find more suggestions including source code to create your own command line tool. I think this tool is exactly what you need. You might adjust the source code to make an external.

Kind regards,

Mark
Thanks, Mark.

Unfortunately, the first link leads to my own request in the Apple discussion group, and the second one suggest the use of the shell script "aliasPath": this tool does not accept file paths with strange characters (parentheses, quotes, etc.) and does not allow the previous shell formating of these characters with escape codes, so it returns many errors.
Post Reply