Restricting the actions of an Applescript to a subset of catalogues
Posted: Sun Apr 12, 2026 10:06 am
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:
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
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