Massively brings you complete coverage from the Warhammer Online beta!

Mac 101: schedule your scripts

We talk about iCal once in a while. Did you know that an iCal alarm can launch an AppleScript? A recent comment from reader Zach (and subsequent replies) made us think that this tip might be of use to anyone who hasn't considered the possibilities.

When you schedule an alarm in iCal, one of the options for the alarm is "Run script." If you select "Other..." from the script selection dropdown, you can choose any AppleScript you want to launch. Then you just tell the alarm when to go off and your script will run.

Considering that AppleScript can control quite a few of the applications on your mac, and that iCal can handle repeating events, the possibilities are wide open. You could do something as simple as schedule applications by putting the following into a script in Script Editor and saving it as a regular script:

tell application "Safari" to activate

and another one...

tell application "Safari" to quit

to quit. Of course, you could then add to the scripts to have Safari navigate to certain pages as well. And you could launch as many apps as you want in the same script. Anything you can do with AppleScript, you can schedule. For more Terminal-savvy readers, Applescript's "do shell script" command allows for an even wider range of possibilities. You can even get user interaction with a "display dialog" command. I'm sure there's someone here who could have a blast with this.

Related Headlines

Reader Comments (Page 1 of 1)

TUAW Features

back-to-school
Mac 101 ask-tuaw
Mac News
WWDC (251)
.Mac (66)
Accessories (652)
Airport (75)
Analysis / Opinion (1422)
Apple (1698)
Apple Corporate (579)
Apple Financial (200)
Apple History (51)
Apple Professional (54)
Apple TV (164)
Audio (450)
Bad Apple (131)
Beta Beat (155)
Blogging (87)
Bluetooth (19)
Bugs/Recalls (57)
Cult of Mac (879)
Deals (225)
Desktops (116)
Developer (282)
Education (110)
eMac (10)
Enterprise (147)
Features (412)
Freeware (399)
Gaming (396)
Graphic Design (38)
Hardware (1307)
Holidays (37)
Humor (589)
iBook (66)
iLife (240)
iMac (185)
Internet (340)
Internet Tools (1342)
iTS (982)
iTunes (823)
iWork (23)
Leopard (376)
Mac mini (112)
Mac Pro (54)
MacBook (206)
MacBook Air (83)
Macbook Pro (226)
MobileMe (47)
Multimedia (459)
Odds and ends (1488)
Open Source (282)
OS (940)
Peripherals (214)
Podcasting (183)
Podcasts (95)
Portables (198)
PowerBook (136)
PowerMac G5 (51)
Retail (612)
Retro Mac (50)
Rig of the Week (42)
Rumors (641)
Software (4457)
Software Update (427)
Steve Jobs (254)
Stocking Stuffers (50)
Surveys and Polls (98)
Switchers (114)
The Woz (35)
TUAW Business (257)
Universal Binary (281)
UNIX / BSD (61)
Video (907)
Weekend Review (84)
WIN Business (47)
Wireless (89)
Xserve (39)
iPhone/iPod News
iPhone (1787)
iPod Family (2116)
App Store (156)
SDK (29)
Mac Events
One More Thing (27)
Liveblog (2)
Other Events (226)
Macworld (489)
Mac Learning
AppleScript (4)
Ask TUAW (107)
Blogs (85)
Books (26)
Books and Blogs (62)
Cool tools (451)
Hacks (472)
How-tos (490)
Interviews (44)
Mods (191)
Productivity (591)
Reviews (114)
Security (167)
Terminal Tips (66)
Tips and tricks (575)
Troubleshooting (173)
TUAW Features
iPhone 101 (36)
TUAW Labs (4)
Blast From the Past (19)
TUAW Tips (150)
Flickr Find (38)
Found Footage (90)
Mac 101 (111)
TUAW Interview (31)
Widget Watch (198)
The Daily Best (1)
TUAW Faceoff (6)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Sponsored Links

The Unofficial Apple Weblog (TUAW) bloggers (30 days)

#BloggerPostsCmts
1Cory Bohon561
2Robert Palmer5544
3Steven Sande5115
4Mike Schramm260
5Erica Sadun251
6Michael Rose2229
7Mat Lu209
8Giles Turnbull200
9Dave Caolo190
10Christina Warren1326
11Brett Terpstra120
12TUAW Blogger70
13Victor Agreda, Jr.511
14Jason Clarke21
15Scott McNulty20

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Apple Vanity Plates
DiscPainter
Crash Bandicoot Nitro Kart 3D
Macworld Expo 2007 show floor
Apple Texas Hold 'Em
The Macworld Faithful in Line

 

    Most Commented On (7 days)

    Recent Comments

    More Apple Analysis

    More from AOL Money and Finance

    Other Weblogs Inc. Network blogs you might be interested in: