[ANN] Spotlight metadata library

I’ve put together a script library for retrieving Spotlight metadata, and conducting Spotlight-style searches. You can read more about it here:

http://forum.latenightsw.com/t/spotlight-metadata-library/688

or just download it here:

https://www.macosxautomation.com/applescript/apps/Metadata_Lib_stuff.zip

It requires macOS 10.9 and later.

Thanks, Shane. That looks very useful.

On my 10.12.6 machine, it will only run if the choose file statement is before the use the library statement.

You must insert the instruction “use scripting additions” before triggering a command belonging to an OSAX.
In real life I insert it at the beginning of my scripts just before the instructions “using” frameworks or libraries.
Example :

use AppleScript version "2.4" # requires at least Yosemite
use scripting additions
use framework "Foundation"
use framework "Quartz" -- required for PDF stuff

Yvan KOENIG running Sierra 10.12.6 in French (VALLAURIS, France) lundi 7 aout 2017 16:56:28

Thanks, Yvan;

My fault – I had use scripting additions in the script twice. AS doesn’t like that.

FYI, it normally throws an error in such cases:


Uh-huh…

Metadata Lib v2.0 is now available. It requires macOS 10.10, and now includes a terminology dictionary, making it easier to use. It also includes the ability to restrict results to items directly within the target folder.

Available here:

https://www.macosxautomation.com/applescript/apps/Script_Libs.html

Metadata Lib 2.0.1 is now available. It fixes a couple of minor bugs.