• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript Studio: how to run a script on launch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: More newbie queries: paths
  • Next by Date: Re: Satimage re_compile regex functions
  • Previous by thread: Re: question: <<event coregetd>> & print multiple copies
  • Next by thread: Re: AppleScript Studio: how to run a script on launch?
  • Index(es):
    • Date
    • Thread