• 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: Changes in 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes in 10.8


  • Subject: Re: Changes in 10.8
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 18 Dec 2013 18:40:11 -0800

On Dec 18, 2013, at 12:01 PM, Hengist Podd <email@hidden> wrote:

[2] Honestly, if an app developer were to ask me how to add attachability today, I wouldn't even bother with NSUserAppleScriptTask. I'd just tell them to use NSUserUnixTask and tell AppleScripters to save their scripts in text format with '#!/usr/bin/osascript' at the start. And to go bug Apple to provide a language plugin system that doesn't suck monkey nuts, of course.

Developers that only need basic script execution should use the superclass NSUserScriptTask -- it will sort out what kind of script it is (compiled OSA, Automator workflow, or “Unix”, which just means a file marked as executable) and run it with no further interaction with the client.  The subclasses are intended for clients that need to pass input to or get results from the script, such as executing a particular handler in an AppleScript.  (Messages does this.)  Using NSUserUnixTask with osascript(1) naturally works, but it's also pointless, because that’s exactly what NSUserAppleScriptTask does.  If NSUserAppleScriptTask doesn’t do what you need, I encourage you to file bugs.


--Chris Nebel
AppleScript Engineering
 _______________________________________________
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: Changes in 10.8
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Changes in 10.8 (From: Hengist Podd <email@hidden>)

  • Prev by Date: Re: Changes in 10.8
  • Next by Date: Re: Changes in 10.8
  • Previous by thread: Re: Changes in 10.8
  • Next by thread: Re: Changes in 10.8
  • Index(es):
    • Date
    • Thread