Re: launch an application, and on quit, logout?
Re: launch an application, and on quit, logout?
- Subject: Re: launch an application, and on quit, logout?
- From: Philip Aker <email@hidden>
- Date: Wed, 24 Jun 2009 09:53:12 -0700
On 2009-06-24, at 09:38:40, Mike Stanley wrote: What I'm trying to do is make an applescript that I can place in a user's login items. What I'd like that script to do is:
1. Launch an application in the user's home area 2. Wait for that application to quit and when it does 3. Log the user out
Is that possible? If so, does anybody have anything they could share?
Here is a call:
ignoring application responses tell application "loginwindow" «event aevtrlgo» end tell end ignoring
I'm not sure how a script could be running continuously as a login item. I would use an applet here. In that applet, you'll have to be careful about where you place the logout event in the script.
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden