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

Revolutionizing Air Quality Monitoring: How I Upgraded Our System with Mila Integration for Smart Home Automation

In this blog post , I explained how I set up an air quality monitoring system for our neighborhood. With this setup, we can keep an eye on t...