Is there an AppleScriptObjC method or a shell script to get the NSURL of a symbolic link without resolving it?
I don’t believe NSURL resolves symbolic links at all.
set file_path to "/Users/Shared/Link"
set file_URL to current application's NSURL's fileURLWithPath:file_path
return file_URL's |path|() as string -- returns "/Users/Shared/Link"
You’re wright.
My bad: NSURL is not involved at all.
The scripts I’m working on are using Finder selection.
In some library handler, I’m making a coercion (set theURL as «class furl»).
I forgot it. This is what confused me.
Thanks anyway for your time.