I ask questions frequently now, but I do try my best to search for the answers first. This forum really seams great! Very helpful people here!
I could use clarification on one thing. In different threads where people want to call methods from different NS-classes in applescript there seem to be at least two ways to do this. One way I have seen is this
set myString to current application's NSString's stringWithString_("Eat my shorts")
The current applications is called where apparently a reference to the NSString class exist.
Another method I seen is when a property containing a reference to a NS-class is stored before the “script-command” which later is used to call a method. Like this
property NSMutableArray : class "NSMutableArray" script MyTestAppDelegate on myHandler() set myArray to NSMutableArray's alloc()'s init() end myHandler end script
I´m curious to what differs between the two techniques and when to use which? If there´s no difference, is there a kind of “best practice”?