Running reverse code through appscript The ASTranslate tool gives me the following:
#import "FNGlue/FNGlue.h" FNApplication *finder = [FNApplication applicationWithName: @"Finder"]; FNReference *ref = [[[finder windows] at: 1] target]; FNGetCommand *cmd = [[ref get] requestedType: [ASConstant alias]]; id result = [cmd send];
The result will be an instance of ASAlias; use the [ASAlias] path to get the POSIX path.
You cannot do this in SB without resorting to raw Apple event codes, as this is one of the features that Apple engineers forgot / did not bother to put in SB less than the star API .
source share