I am running a simple script that works fine localy.
As soon as I try to make my source folder a Volume it seams to not want to look in every folders??? javascript:emoticon(‘:shock:’)
here is the script:
tell application “Finder”
every item of the every folder of “Archive:” whose name contains “abr”
end tell
this is the error message I am getting:
Can’t get every folder of “Archive:”.
You will get this error because the action that you have called has to traverse the entire volume that you have selected. If the script does not get a reply from the targeted app within 2 minutes you will get this error. What you can do is wrap the script in a timeout statement.
with timeout of xxx seconds-- where xxx is a number of second you want the script to wait for a response
tell application “Finder”
every item of entire contents of folder"Archive:" whose name contains “abr”
end tell
end timeout
javascript:emoticon(‘:shock:’)
I am shocked to say the least!
If I use Command F even if it has to traverse the whole volume. it takes a few seconds?
There is something I am not getting here?