Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Have it remember your last shutdown delay' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Have it remember your last shutdown delay
Authored by: ngb on Feb 18, '04 02:14:49AM
In the display dialog line, change default answer "" to display dialog pIntTimeAmount, and the script will display your last timeout as the default. Whenever the script changes the value of a property, it remembers the new value next time it is launched. The complete line is below.

set recDialog to display dialog "Enter in how many minutes until the computer shuts down?" ¬
     default answer pIntTimeAmount buttons {"Cancel", "Ok"} default button 2


[ Reply to This | # ]