Tag Info

New answers tagged

0

You can schedule an event once with at: at 23:59 <<< 'osascript -e "quit app \"Mail\""; pmset sleepnow' Or to schedule it to repeat every day, edit the crontab with EDITOR=nano crontab -e and add an entry like this: 59 23 * * * osascript -e 'quit app "Mail"'; pmset sleepnow


0

Here's a strictly applescript version that accomplishes this given a hard-coded time value. You could, of course make this part interactive if you want. Also, this version assumes the time-string relates to today. --Get time setting for action to occur set t to "3:16:30 PM" --build a time string to use as a target. set cd to (current date) as text set ...


1

You can turn on auditing. man audit


0

I'm with the plist aspect of your question, but this script will run and stay open in the background checking the time every four minutes ( customizeable )to see if the day or time necessitates a status change. Does that work in your situation? Any links to explain your use of plists above would be appreciated. property idleTImer : 10 --seconds property ...


0

I'm not an Applescript expert, but you might consider simplifying the scripts to remove the timing aspects and use the daemon launchd for scheduling. After all, that's why Apple put it into the OS. Though you're obviously not afraid of the command line and plist editing, Lingon is an application that provides a simple GUI interface to launchd (for the rest ...


1

I don't think it's possible, but FastScripts does seem to use custom icons in the menu:



Top 50 recent answers are included