As I hate the Finder I try to replace a call to Finder's alias file --> the original item pointed to by the alias
by some ASObjC code.
Alas I clearly missed something but can't guess what.
use AppleScript version "2.4"
use framework "Foundation"
use scripting additions
# POSIX path to a symbolic link on the desktop
set POSIXPath to POSIX path of (path to desktop as text) & "Folder Action Scripts"
set theURL to current application's class "NSURL"'s fileURLWithPath:POSIXPath
set {theResult, theValue, theError} to theURL's URLByResolvingAliasFileAtURL:(reference) options:{} |error|:(reference)
May you explain what is wrong here ?
I found nothing about the options in Xcode help.
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) samedi 11 mars 2017 11:12:48