• 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: Quit App Over Time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit App Over Time


  • Subject: Re: Quit App Over Time
  • From: Neil Laubenthal <email@hidden>
  • Date: Fri, 08 Aug 2008 16:14:34 -0400

Sure.

To quit at time x

tell application Whatever to quit.

then execute this script at time x . . . using lingon cron or iCal or any of probably a dozen other ways.

To exit it after a certain amount of time after launch.

Launch it with a script

tell application whatever to launch
set some_variable to timenow
sleep awhile
get current time
calculate difference between some_variable and current time. when this gets to the right value
tell application Whatever to quit.


I'm not an applescript expert so I would have to monkey around with this a bit to get the syntax right . . . but the basic architecture should work.


Quoting Vance <email@hidden>:

	Is there a way to tell an application to shut down after a certain
amount of time, or at a certain time?  Thanks
_______________________________________________
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



--

There are only three kinds of stress . . .your basic nuclear stress, cooking
stress, and A$$ho1e stress. The key to relating them is . . . Jello.

neil

_______________________________________________
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: 
 >Quit App Over Time (From: Vance <email@hidden>)

  • Prev by Date: Quit App Over Time
  • Next by Date: Kill Dock... On 10.5
  • Previous by thread: Quit App Over Time
  • Next by thread: Kill Dock... On 10.5
  • Index(es):
    • Date
    • Thread