Restricting the actions of an Applescript to a subset of catalogues

A place to find NeoFinder support questions and answers
Post Reply
Skids
Posts: 4
Joined: Thu Mar 27, 2025 7:28 am

Restricting the actions of an Applescript to a subset of catalogues

Post 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
neo-admin
Site Admin
Posts: 479
Joined: Tue Mar 08, 2022 3:10 pm

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

Post 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
Skids
Posts: 4
Joined: Thu Mar 27, 2025 7:28 am

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

Post 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.
neo-admin
Site Admin
Posts: 479
Joined: Tue Mar 08, 2022 3:10 pm

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

Post by neo-admin »

Good idea!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest