If it is, I don't need to do anything.
If it isn't I want it to be mounted.
The rule is "if Kind is Volume" & "Name is not TV"
I am running an Applescript:
- Code: Select all
tell application "Finder"
try
mount volume "afp://user:password@MyBook.local/TV"
end try
end tell
The problem is, the script is being run regardless of whether TV has already been mounted or not.
This causes it to be un-mounted then re-mounted - at least I think it is - the icon on the Desktop disappears briefly then re-appears.
The log for this operation is:
2013-04-25 08:36:06.183 hazelworker[10315] Processing folder Volumes (forced)
2013-04-25 08:36:08.217 hazelworker[10315] Backup: Rule CHECK TV WAS MOUNTED matched.
2013-04-25 08:36:09.388 hazelworker[10315] File TV is busy. Skipping for now.
2013-04-25 08:36:11.395 hazelworker[10315] File TV is busy. Skipping for now.
2013-04-25 08:36:13.401 hazelworker[10315] File TV is busy. Skipping for now.
2013-04-25 08:36:17.653 hazelworker[10315] File TV is busy. Skipping for now.
2013-04-25 08:36:21.664 hazelworker[10315] Done processing folder Volumes
Is there a better way for Hazel to check this mount?