Retrieve the original path from a broken alias
Having a list of aliases, I need to detect which one has a broken target path and I need also to get this path.
I've tested Applescript:
tell application "Finder"
try
set reference_doc to original item of (aliaspath_string as POSIX file as alias)
set originalpath_string to POSIX path of (reference_doc as alias)
on error
return empty
end try
end tell
but applescript is slow, it try always to mount remote servers and don't return the broken path. Any suggestion? Maybe a "do shell script" command line expression?
Thanks
Paul
Macbook Pro, Mac OS X (10.5.4)