Why doesn't this Folder Action work?

blackoutspy

Registered
on opening folder this_folder
tell application "Finder"
mount volume "smb://USER:pASS@COMPUTER/SHARE"
close this_folder's window
end tell
end opening folder

What i'm trying to do, is attach this to a folder i could drag into my dock, next to my trashcan where i had my alias for the share before. The reason i want to use this folder action, and not just the alias is because 1) I can keep a constant icon for the share and 2) Using a script to do it is, for some reason, at least 4 times faster. When i use the alias from my dock, i get the beach ball for a good minute or two before the share is actually mounted.
 
Back
Top