Due to Spotlight being a massive headache, we are experimenting with CD Finder to catalog some server volumes. I am currently using this variation on the script supplied with CD Finder, but I’d like it to only catalog specified mounted volumes, not just every single mounted volume. It could get messy. Can anyone point me in the right direction?
-- Script to update CD Finder.
tell application "Finder"
mount volume "afp://username:password@IPADDRESS/Volume Name"
mount volume "afp://username:password@IPADDRESS/Volume Name"
mount volume "afp://username:password@IPADDRESS/Volume Name"
end tell
tell application "Finder"
set myList to every disk whose local volume is false
repeat with oneVolume in myList
tell application "CDFinder"
with timeout of 2000 seconds -- remember: this might take more than the default 60 seconds!
set theResult to create catalog of (oneVolume as alias) with mayUpdate without mayDuplicate
end timeout
end tell
end repeat
end tell