• 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
Re: launch an application, and on quit, logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >launch an application, and on quit, logout? (From: Mike Stanley <email@hidden>)

  • Prev by Date: launch an application, and on quit, logout?
  • Next by Date: Re: Using "original item" property on aliases from a network share
  • Previous by thread: launch an application, and on quit, logout?
  • Next by thread: Re: launch an application, and on quit, logout?
  • Index(es):
    • Date
    • Thread