I’m working on a script in 10.5 that will mount a network drive based on user input. When properly connected, it works great, but i have an “on error” sequence designed to allow the user to try again if the connection didn’t work the first time.
Problem: whenever the connection is unsuccessful, the Finder window linked below shows up, which i would REALLY like to avoid, because this interrupts the script. Is there a way to prevent this window from opening or at least cancel it immediately if it does open?
http://i21.photobucket.com/albums/b267/lucky_luc/Picture1.png (sorry i couldn’t figure out how to include the image in this post)
I’ve been having trouble because i can’t figure out how to identify that window, because it doesn’t have a title. Even a shell script that would list all open windows could lead me to a solution.
Thanks for your help.
AppleScript: 2.0.1
Operating System: Mac OS X (10.5)