|
|
An AppleScript to generate a timed shutdown
Hey all,
Not bad Steve. I decided to clean up your code a bit. It now uses a different method than using delay or sleep which is...
Sets the scheduled date to the current date + Number entered * 60 (Converts the number entered into minutes)
Then on idle, tests if the current date is greater than or equal to the scheduled date.
Like I said, good job and thanks for the contribution.
Hey all if you want to use this version, simply paste it into Script Editor and save as an application making sure Stay Open is checked since this script utilizes the on idle event.
Cheers,
---
Have it remember your last shutdown delay
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.
An AppleScript to generate a timed shutdown
Hey all,
Seems that the >= character was not carried over correctly. Should be...
---
An AppleScript to generate a timed shutdown [Final Version]
Here is the final version of this script. It was brought to my attention that there was a critical component of the code missing it is fixed now.
Simply compile and Save as an Application and make sure "Stay Open" is checked.
---
An AppleScript to generate a timed shutdown
For some reason, this script isn't working for me. The dialog boxes display as they should and the fields seem to accept entries okay. But my computer is still not shutting down. Any ideas? Btw, if it matters, I'm running OSX 10.4.2 on a 15" Titanium PB. Thanks!
An AppleScript to generate a timed shutdown (Final Version)
To clarify, I'm running the "Final Version" of the script. Thanks.
An AppleScript to generate a timed shutdown (Final Version)
Nevermind. It's working now. (I may have failed to select the "Stay Open" option when I first saved the script.) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|