The other day I started fooling around with Applescript just to see what it was and what I could do with it. After opening a few scripts in Script Editor and trying out a few things, I ended up making a little app that opens iTunes and Clutter together. I use Clutter to control iTunes; most of the time I just set my library on shuffle and let the tunes play. So this script opens iTunes, tells it to play, opens Clutter, and then closes the main iTunes window. I must mention that I am Applescript (or any type of programming language for that matter) illiterate. This script is really simple and may have already been done in other, better ways. I just couldn't find one already out there, so I made my own.
Here's the script (for other illiterates like myself who may run across this hint, open a new script in Script Editor, then paste the following text):
[robg adds: Yes, it's a simple script, but it does show just how easy it is to get started with AppleScript...]
Here's the script (for other illiterates like myself who may run across this hint, open a new script in Script Editor, then paste the following text):
tell application "iTunes" activate end tell tell application "Clutter" activate end tell tell application "iTunes" play end tell tell application "iTunes" close window "iTunes" end tellI saved the script as an application with no start-up screen (Save As -> Application, click "Never show start-up screen"), gave it a custom icon, and now just use it to launch iTunes and Clutter. I'm sure most people here can do this themselves, but if they haven't, at least now they can cut and paste and save a little typing. I know it's not much, but I'm kinda proud of my first venture into writing scripts.
[robg adds: Yes, it's a simple script, but it does show just how easy it is to get started with AppleScript...]
•
[6,428 views]

