Re: AppleScript Studio: how to run a script on launch?
Re: AppleScript Studio: how to run a script on launch?
- Subject: Re: AppleScript Studio: how to run a script on launch?
- From: Matthew Smith <email@hidden>
- Date: Tue, 30 Apr 2002 14:08:06 +1000
on 30/04/2002 06:00, Kinsella, John R. at email@hidden wrote:
>
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.
This should really be directed to the AppleScript-Studio list.
http://www.lists.apple.com/mailman/listinfo/applescript-studio
Anyway, why not the "launched" event handler of "File's owner" object in the
interface builder? It sounds like this is would get called when the
application is launched.
--
Matthew Smith
_______________________________________________
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.