Monday, December 18, 2017

#1 2017-08-06 11:06:31 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

[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/spotligh … ibrary/688

or just download it here:

https://www.macosxautomation.com/apples … _stuff.zip

It requires macOS 10.9 and later.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#2 2017-08-07 09:43:27 am

t.spoon
Member
From:: BFE, Massachusetts
Registered: 2013-01-13
Posts: 211

Re: [ANN] Spotlight metadata library

Thanks, Shane. That looks very useful.


Hackintosh built February, 2012 |  Mac OS Sierra
GIGABYTE GA-Z68X-UD3H-B3 | Core i5 2500k | 16 GB DDR3 | GIGABYTE Geforce 1050 TI 4GB
250 GB Samsung 850 EVO | 4 TB RAID
Dell Ultrasharp U3011 | Dell Ultrasharp 2007FPb

Online

 

#3 2017-08-07 09:45:16 am

Adam Bell
Administrator
From:: Nova Scotia, Canada
Registered: 2005-10-04
Posts: 4660

Re: [ANN] Spotlight metadata library

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


iMac running OS X 10.13.1

Offline

 

#4 2017-08-07 09:56:32 am

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 3203

Re: [ANN] Spotlight metadata library

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 :

Applescript:

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

Last edited by Yvan Koenig (2017-08-07 09:58:28 am)

Offline

 

#5 2017-08-07 02:55:26 pm

Adam Bell
Administrator
From:: Nova Scotia, Canada
Registered: 2005-10-04
Posts: 4660

Re: [ANN] Spotlight metadata library

Thanks, Yvan;

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


iMac running OS X 10.13.1

Offline

 

#6 2017-08-07 08:18:20 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

Re: [ANN] Spotlight metadata library

Adam Bell wrote:

I had use scripting additions in the script twice. AS doesn't like that.



FYI, it normally throws an error in such cases:

“<some command>” is ambiguous because it is imported from scripting additions and scripting additions.



Uh-huh…


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#7 2017-11-09 09:30:24 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

Re: [ANN] Spotlight metadata library

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/apples … _Libs.html


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)