Re: OSAScriptView - documentation?
Re: OSAScriptView - documentation?
- Subject: Re: OSAScriptView - documentation?
- From: Shane Stanley <email@hidden>
- Date: Thu, 15 Aug 2013 23:43:28 +1000
On 15/08/2013, at 11:29 PM, 2551 <email@hidden> wrote:
> I'm developing an application in ASObjC that needs to compile and execute plain text as AppleScript, in much the same way as the AppleScript Editor does.
>
> At present, I'm planning on doing that by using an ordinary NSTextView, then sending the string to osacompile, harvesting the result and displaying that back in the interface. However, I notice that there's an OSAScriptView class, which at least by its name looks like it could offer better functionality.
>
> Alas, I can find no documentation anywhere on this. I'd appreciate your thoughts, as it feels like I'm reinventing the wheel trying to do something that should be fairly native.
I tried OSAScriptView for a while, and gave up on it. Last I looked, it had serious problems with compiling and undos. I ended up using an NSTextView, which works fine. You lose the Script Assistant feature, but depending on what you're after, you can do your own completion. See <www.macosxautomation.com/applescript/apps/> for an example.
You should also skip osacompile and use OSAScript instead (also undocumented, but the headers give you a reasonable idea).
What's your app going to do?
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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