Here's a link to an AppleScript that I wrote to wake me up when I was traveling. When I was in Norway last summer, I realized after I got there that even though I had my PowerBook, I had neglected to bring an alarm clock. That's only important if you have to be places on time, which I did, so I sat down and devised this scheme in about 2 minutes. It's been updated a little bit since then, to use the Party Shuffle playlist.
Here's how it works for Mac OS X users:
- download the script here
- unstuff it
- double click on it to make sure it works
it will launch a tune from your party shuffle playlist, that's all it does, then it quits. - put it somewhere on your hard drive where you can find it
- open iCal and make an event for the time you want it to start playing a tune
- click on the "alarm" option in the event info drawer
- choose "open file" from that list
- set the file to open to be the applescript you downloaded and unstuffed above
- voila, you have a clock set to launch iTunes now.
Here's how it works for Windows and Linux Users:
- Go to the Apple Store
- Buy a Mac
- Follow the directions above
there are a couple of gotchas:
sometimes when I download music and the quit itunes, the next time iTunes launches it puts up a MODAL (thanks Apple for going against everything Mac OS X is supposed to be about) DIALOG that will not allow iTunes to play until you click OK. Suck suck suck. it's not a bad thing until you set itunes to wake you up in the morning and it can't play because of the old-style os 9-ish modal dialog.
sometimes when I use autofill on my iPod shuffle, iTunes tries to put too many songs on the shuffle, and it puts up a (you guessed it) MODAL DIALOG that keeps iTunes from playing music until you click OK. Again, if you're sitting right there it doesn't matter but if you plug the iPod Shuffle in and then go to bed while it syncs, iTunes won't wake you up in the morning because it will be waiting for you to click OK.
Finally, for this to work, you have to leave your Mac on and awake. It won't wake the Mac from sleep or boot it or anything. That was another OS 9 feature that hasn't returned to OS X yet (any hopes for Tiger?) – you could set your mac to boot at a specific time so you could turn it off, have it boot in the morning and then start playing a tune. We'll see if Tiger has caught up on that front in a couple of weeks.
Enjoy, and don't blame me if it doesn't work on your machine. It's AppleScript, and I saved it in wide-open mode, so you can open it with your favorite script editor and edit away.























5 Comments
Thanks for this, I'll have to try it out. You can set a Mac to boot at a certain time with OS X. Under "Power Saver" in "System Preferences" click "Schedule" and set your wake/sleep times.
my bad! pb is correct, you can set Mac OS X to boot at certain times from the "Energy Saver" preference pane. The setting I miss from OS 9 (and believe me, I'm not an OS 9 champion since the day Mac OS X 10.0 shipped) was being able to "wake from sleep" at a particular time.
In the olden days, I could have the computer wake from sleep and then activate Sound Jam without having to hear the startup bong. It just seemed so much smoother than having the "bong" wake me and then have to wait a couple of minutes for the music to actually start.
of course, that was OS 9. Sometimes it didn't wake from sleep at all
Tiger now has an option of telling your computer what time you want to let it startup OR wake up from sleep, which really helps this script, just set it to a few minutes before the alarm and your set, as long as you don't need a password to wake your computer
Hi,
I google Applescript iTunes and found this script. I want to set my iTunes to wake me up to NPR's WNYC (under iTunes radio directory–http://www.wnyc.org/stream/wnycfm.pls). I haven't got a clue how to set this, however, if it's possible. Do you have any hints? Thanks,
Scott
Me again, I answered my own question (and am posting it here if anyone cares).
Using your browser, find the site of the streaming channel you'd like to set your iTunes to play (in my case WNYC.org). CONTROL Click on the Streaming Link, select "Download Linked File." This will save a file to your computer, which when directed by iCal to Open will be opened by iTunes and stream the station you wish, at the time you set in your iCal.
Actually, this bypasses the need for Applescript entirely.