• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSAScriptView - documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: OSAScriptView - documentation?
      • From: 2551 <email@hidden>
    • Re: OSAScriptView - documentation?
      • From: 2551 <email@hidden>
References: 
 >OSAScriptView - documentation? (From: 2551 <email@hidden>)

  • Prev by Date: OSAScriptView - documentation?
  • Next by Date: Re: OSAScriptView - documentation?
  • Previous by thread: OSAScriptView - documentation?
  • Next by thread: Re: OSAScriptView - documentation?
  • Index(es):
    • Date
    • Thread