AppleScript Studio: how to run a script on launch?
AppleScript Studio: how to run a script on launch?
- Subject: AppleScript Studio: how to run a script on launch?
- From: "Kinsella, John R." <email@hidden>
- Date: Mon, 29 Apr 2002 15:00:57 -0500
List,
Hopefully someone out there has a suggestion for me. I have a script
mounting some volumes based on usernames and passwords supplied by the user.
In the current version of this app, I have it checking to see if any volumes
are currently moounted before going ahead. This is triggered by the user
clicking the Login button. I would like to move this portion of the script
to it's own script and have it execute when the script is launched or
loaded, BEFORE the user can input their info. Here's the problem. I can
set this to run when the window becomes main, but after the login script
runs, the windows becomes main again (before quitting) and therefore
unmounts everything I just mounted. I want this "cleanup" script to run
only once when the app is first loaded, but cannot see a way to accomplish
this. Any ideas? BTW, I cannot code into the script what names to check
for, they are based on the username and will be different everytime, so the
cleanup basically unmounts every disk that is not a local disk. That's what
we want, but makes this task tricky.
Help!
John Kinsella
-------------
"The surest way to corrupt a youth is to teach him to hold in higher regard
those who think alike rather than those who think differently."
--Nietzsche
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.