Re: Script Editor > Library window
Re: Script Editor > Library window
- Subject: Re: Script Editor > Library window
- From: Chris Page <email@hidden>
- Date: Wed, 13 Jan 2016 19:44:04 -0800
> On Jan 11, 2016, at 6:15 PM, Jean-Christophe Helary <email@hidden> wrote:
>
> I guess it's time to consider a renaming of the window since it actually does *not* list AS libraries.
It's named “Library” as in “Library of Terminology Dictionaries”. You can add script libraries to the list. But you've found that it isn't as straightforward to add a script library that's embedded in an application bundle (i.e., in the “./Contents/Library/Script Libraries/” directory).
BTW, the name for a script that is a library is “script library”, not just “library”.
> I tried to add the Apple Configurator 2 AS library there and I got an error message.
You tried to add the Apple Configurator 2 application to the library, or you located the library that's inside its bundle and tried to add it? The latter works; however, you have to first locate it in Finder using Show Package Contents to locate the embedded library.
Note that in this particular case, there's only one event in the terminology dictionary, “show help”, which reveals documentation in an embedded HTML file (the library's scripting interface uses user-identifiers instead of terminology).
> I also tried with Shane's libraries and neither DefaultsLib nor FileTagsLib were accepted.
>
> So, as far as AS libraries are concerned, what is this window doing ? Why are some libraries accepted and some others not ?
Report that to Shane. He'll need to determine whether there's something wrong/different about those libraries.
> It would be very useful to have a window like that listing all the libraries available to the user by automatically parsing the relevant paths...
File > Open Dictionary is meant to give you the list of all scriptable items. The Library window is meant to be a short “favorites” list. The Open Dictionary list currently includes scriptable applications, scripting additions, and installed libraries. You can click its Browse button to locate other libraries.
App-embedded libraries are currently not in the Open Dictionary list, but I agree they should be.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
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