Page 1 of 1

Restricting the actions of an Applescript to a subset of catalogues

Posted: Sun Apr 12, 2026 10:06 am
by Skids
Hi,
I am writing Applescript to help me manage a library of image files. Updating a large catalogue of is slow so it is advisable to manage a large library of images using multiple NeoFinder catalogues. It is also likely that NeoFinder will prove itself so useful that it is also used to catalogue other drives and media. This creates a problem when writing scripts that should only be applied to the certain catalogues e.g. the user's image library.

I have a solution but am asking if there is a better method that I have missed.

My solution is to use one of two metadata fields that NeoFinder provides to describe the catalogues. The options are "comment" and "location". These may be accessed using the following lines of script:

Code: Select all

tell application "NeoFinder"
	set theCatalogs to the Catalogues whose catalog location is "PhotosByYear"
	-- OR
	set theCatalogs to the Catalogues whose comment contains "Photo_Library"
	log
end tell

I am leaning towards using the "location" field as I have no idea why it exists so I have no other use for it but others may depend on it.

So what do you think?

S

Re: Restricting the actions of an Applescript to a subset of catalogues

Posted: Tue Apr 14, 2026 4:18 pm
by neo-admin
The NeoFinder Users Guide explains the purpose of the additional Catalog fields:

https://www.cdfinder.de/guide/4/4.3/extra_fields.html

Using them in the way you do that in your script is a great idea!

You could also use the color labels to mark catalogs to be used for certain things:

https://www.cdfinder.de/guide/4/4.8/color_labels.html

Re: Restricting the actions of an Applescript to a subset of catalogues

Posted: Wed Apr 15, 2026 9:17 am
by Skids
neo-admin wrote: Tue Apr 14, 2026 4:18 pm Using them in the way you do that in your script is a great idea!
Thanks. I will use the "contains" form so that the end user has the option of also using the field.

Re: Restricting the actions of an Applescript to a subset of catalogues

Posted: Wed Apr 15, 2026 2:11 pm
by neo-admin
Good idea!