Friday, March 9, 2007

Scheduled Launching/Quitting Applications

On our Mac mini, I wanted to schedule an application to launch in the morning, and quit at night.  I was able to pretty easily configure launchd and AppleScript to do this.

For example, if I wanted to launch TextEdit, I would create these AppleScripts, and saved them as applications.

tell application "TextEdit"
end tell

tell application "TextEdit"
end tell

Then, I scheduled these applications to be launched at the specified time with launchd using Lingon.

No comments:

Post a Comment

Unlocking Raspberry Pi Potential: Navigating Network Booting Challenges for Enhanced Performance and Reliability

I've set up several Raspberry Pis around our house for various projects, but one recurring challenge is the potential for SD card failur...