Hi
I have a one line script that works fine in the Apple Script Editor as:
tell application "Firefox" to return name of window 1 as string
The result instantly returns the page title. But this does not work using AppleScript / OSAScript.
Objective-C:
OSAScript *scriptNAME= [[OSAScript alloc] initWithSource:@"tell application \"Firefox\" to return name of window 1"];
returnDescriptor = [scriptNAME executeAndReturnError: &errorDict];
The result is nil, it also takes 2 seconds to work that out.
Any ideas what is wrong? I am using FireFox 55.0 64 bit.
Thanks
Geoff