every item of every folder of

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:”.

can anyone help?
Thanks

Give this a try

tell application “Finder”
every item of entire contents of every folder of “Archive:” whose name contains “abr”
end tell

Andrew

still the same?
I get this error:
AppleScript Error
Can’t het every folder of “Archive:”.

Sorry about that!!

tell application “Finder”
every item of entire contents of folder"Archive:" whose name contains “abr”
end tell

I get this error now… at least it’s different?
any clue?
Finder got an error: AppleEvent timed out.

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

Hope this helps

You can get more info on this information here
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/index.html

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?

The command - F is quicker because it references an index file for the find.