Re: OSAScript class reference
Re: OSAScript class reference
- Subject: Re: OSAScript class reference
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 16 Apr 2010 15:15:28 -0400
On Apr 16, 2010, at 2:55 PM, Scott Babcock wrote:
> Does anyone have a line on OSAScript class documentation? This class lives in the OSAKit framework, and the only documentation I've been able to track down is the sketchy comments in the header files themselves. This framework has been available for quite some time - it's installed on a machine that I have running Mac OS X 10.4.11.
For several years I have advocated using OSAScript instead of NSAppleScript for methods like -executeAndReturnError:, which are implemented under the same name in both frameworks. The key difference is that OSAScript's -executeAndReturnError: method causes a changed script property to be saved after execution, as it should be, while the NSAppleScript version of the method does not (which is a bug, pure and simple).
Several years ago I begged Apple's documentation department to document OSAScript, particularly with respect to this issue, since it had become clear that Apple wasn't going to fix NSAppleScript. But they wouldn't document it (they were way understaffed on documentation then, and I hear it's worse now). As a result, there were, and probably still are, many applications out there that don't handle properties correctly, despite my efforts to advertise the problem. Various third-party script runners and script menu applications have this problem.
I believe, though I can't prove it, that Apple's own applications, such as Automator, use OSAKit in preference to NSAppleScript.
--
Bill Cheeseman
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden