Page 1 of 1

Retrieve the original path from a broken alias

Posted: Tue Jun 10, 2014 1:51 pm
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

Re: Retrieve the original path from a broken alias

Posted: Tue Jun 10, 2014 10:02 pm
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

Re: Retrieve the original path from a broken alias

Posted: Wed Jun 11, 2014 8:51 am
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.