Wednesday, November 20, 2019

#1 2019-07-06 12:55:24 pm

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

problem with specifier when using two libraries

Hello

I have an old script in which some tasks were done by embedded ASObjC instructions and a call to Shane's "Metadata Lib" library.
I decided to replace many instructions by cals to Shane's FileManagerLib.
One instruction is :

Applescript:

set {theResult, theName} to (aURL's getResourceValue:(specifier) forKey:(current application's NSURLLocalizedNameKey) |error|:(missing value))

When I ask to compile I get a warning saying :
« specifier » est ambigu car importé de script "Metadata Lib" et script "FileManagerLib".

The instruction is not calling one of the two libraries, it's a basic ASObjC one.

Of course I tried to replace specifier by reference but this late word is automatically replaced by specifier when I ask to compile.

What may be done to get rid of that ?

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) samedi 6 juillet 2019  20:55:17

Offline

 

#2 2019-07-07 07:57:06 am

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

Re: problem with specifier when using two libraries

It's a bug in the AppleScript compiler. I should have revised versions of the libraries containing a workaround in the next couple of days.


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

Offline

 

#3 2019-07-07 10:12:03 am

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

Re: problem with specifier when using two libraries

Thanks.

It's fine to read good news from time to time.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) dimanche 7 juillet 2019  18:11:58

Offline

 

#4 2019-07-07 08:20:54 pm

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

Re: problem with specifier when using two libraries

Revised versions of those (and a couple of other) libraries are now available:

https://www.macosxautomation.com/apples … _Libs.html


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

Offline

 

#5 2019-07-08 01:46:15 am

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

Re: problem with specifier when using two libraries

Thanks.

Got the new set.

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 8 juillet 2019  09:46:10

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)