Mac 101: schedule your scripts
2008-04-15 01:00:14 / The Unofficial Apple Weblog
Filed under: Tips and tricks, Mac 101We 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.Read | Permalink | Email this | Comments
Source >>
Similiar The Unofficial Apple Weblog News:
- Apple files for iPhone instant messaging patent
- Fair Oaks, Va. Apple Store ready to open
- PayPal says it won't block Safari
- Rivet media sharing for Xbox 360
- Apple makes a nice jump on the Fortune 500
- MBP vs. MBA benchmarking showdown
- Apple wants to improve online shopping
- Apple Q2 earnings call preview
- Mambo Italiano: iPhone for Italy looking likely
- Port Map: easy UPnP port mapping
- AudialHub 1.0
- Apple offers photo book discounts for Mother's Day
- TUAW Talkcast tonight: Mac and iPhone gaming
- Ask TUAW: Remote file access, converting images to CMYK, VNC on OS X, Time Machine and more
- Terminal tip: easy email attachments
- Two more Apple Stores confirmed for New York City
- Version control for writers
- BusySync 2.0 ships, adds Google Calendar
- The Frankenmac is alive
- Last second notice: iPhoneDevCamp New York City
- Camino 1.6
- Free alternatives to the Macheist bundle
- NYC Dept. of Education suspends Mac orders pending wireless issue fix
- Apple changes Software Update GUI for Windows
- Mac Mini home theater redux
- Pwn your iPhone using Windows
- Trading up to a new iPhone
- Found Footage: Tips for Dating an Apple Coder
- iPhone coming to India on Vodaphone in September?
- AT&T WiFi portal for iPhone users shows up at Starbucks
- New head-mounted laser display patent surfaces
- Mac 101: Zoom and pan images in Quick Look
- LCD Scrub cleans those stubborn stains from your screen
- VMware Fusion video contest offers a MacBook Air
- Gartner marketshare data shows a bushel of Apples
- TUAW On Scene: from the premiere of Welcome to Macintosh
- TUAW hands on with CrossOver Games
- Entries open for Apple's 2008 design awards
- Create a PDF of newspaper headlines with Automator
- IBM considering Macs for employees?
- Early Mac Pros finally get their NVIDIA GeForce 8800 GT Upgrade Kit
- Safari 3.1.1 released
- 02 offers iPhone savings for UK buyers
- More bundle fun with MacUpdate Promo Parallels deal
- GrabUp
- Starbucks offers free iTunes "Pick of the Week"
- Microsoft Remote Desktop Connection Client for Mac 2, Beta 3
- Fring: VOIP on iPhone--live blog tryout
- Massively offers bi-weekly roundup of Mac MMOs
- Mac 101: see iCal events in Cover Flow
- Psystar: What's the French Word for Lawsuit?
- Famed modder goes fruity with an Apple IIGS
- Pwnage updated to 1.1
- AppleTV update 2.0.2
- Mac 101: schedule your scripts
- Sega producer talks about Super Monkey Ball for the iPhone
- Cover Flow for a more Fluid browsing experience
- Speedy creation of rich text links to Mail messages
- PBS videos for educators hit iTunes U
- First commercial Hackintosh announced by Psystar
- AppleScript: Control iTunes with an e-mail
- Talkcast tonight at 10 pm -- Parenting and the Mac
- Mac 101: fine tune your Mac's volume
- MacHeist retail bundle now available
- Caffeine control
- Ask TUAW: recording online radio, screenshots, rescuing a Performa, restoring a Time Machine backup and more
- 1Password: same great taste, new price
- JPMorgan: MacBook Sales Up, PC Sales Down
- ExpanDrive gets AppleScript support
- Lightroom 1.4.1 and Camera raw 4.4.1 released
- Beta Beat: Aperture2Gmail 0.8
- Evernote, meet Skitch
- iPhone 101: Clearing cookies from Mobile Safari
- Next talkcast: Parenting with Mac moms & dads
- TypingWeb gains Safari compatiblity
- iPhone vs. gravity is no contest
- New "Get a Mac" ad: Office Stress
- Found Footage: Conan on iChat
- New Macheist bundle on the way
- Adobe's virtual library open to the public