Re: El Capitan
Re: El Capitan
- Subject: Re: El Capitan
- From: Shane Stanley <email@hidden>
- Date: Mon, 05 Oct 2015 18:03:25 +1100
On 1 Oct 2015, at 10:16 AM, Shane Stanley <email@hidden> wrote:
The ability to install script libraries in any application bundle is also one to watch...
...because we now have such a thing, and from Apple itself. If you go to the App Store and download Apple Configurator 2 (available in 10.11 only), it's not scriptable -- but it does have a script library.
The library is in the app's /Contents/Library/Script Libraries/ folder, and is called "Configuration Utility". You can open it and see the code, which is just standard AppleScript and AppleScriptObjC -- a lot of the functionality of Configurator is provided by a command-line tool, and the library is mostly a bunch of handlers built around it, via do shell script.
The library has its own scripting dictionary, with just one command: show help. So to see the documentation, you can just run the following script:
use script "Configuration Utility" show help That opens detailed documentation in your chosen Web browser, with each handler a link that will open sample code.
It's an interesting approach to scriptability, and it's great to see Apple eating its own scripting dog food. I'd also imagine it's going to be a huge boon for those who have to manage lots of devices.
(And no, I had nothing to do with writing it, other than writing the editor it was written in...)
|
_______________________________________________
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