image ResEx Logo
ResExcellence www : Powered by Google
Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets


Files are in Stuffit 5 or greater format.
Free download.

Tell us about a bad link.

Thank You!


Running
without a restart.

Add SoundJam's Applescript Dictionary to Classic iTunes.

Updated:

After reading about scripting iTunes 1.1 on ResEx, Doug Smith did some poking around and found a few more scripting commands. These do not require modification of iTunes resources. Here they are:

tell application "iTunes"

-- Use only one of these commands per script.

«event aevtvol+» -- Sound volume up
«event aevtvol-» -- Sound volume down
«event aevtmute» -- Toggle mute on/off
«event aevtpref» -- Play a specified streaming feed
«event aevtpref» -- Open the preferences dialog
open location URL -- Play a specified streaming feed
-- for example: open location "http://www.wolffm.com/streams/wolf128k.pls"

end tell

Rather than copy the resources from SoundJam to make iTunes scriptable, Doug Adams says the commands were always there, you just have to access them another way until a dictionary is complete:

tell application "iTunes"
«event hookPlay» -- Play
«event hookPaus» -- Pause
«event hookStop» -- Stop
«event hookNext» -- Next track
«event hookPrev» -- Previous track
«event aevtejct» -- Eject CD
end tell

Doug knows his Applescripts. He runs two sites: Applescripts for Tex-Edit Plus and Applescripts for SoundJam.


One nice feature from the free version of SoundJam was its ability to accept Applescript commands, a feature missing in the classic version of iTunes 1.1.

Assign the following simple script to a Function key in the Keyboard Control Panel, and SoundJam would skip to the next song - without having to be the font application!

tell application "SoundJam"
next track
end tell

Since many of the same developers from SoundJam also wrote iTunes, could the Applescript resources from SoundJam be grafted onto iTunes? The answer is "Yes".

If you don't have it already, download a copy of the free version of SoundJam. After installing, open the SoundJam application and a copy of iTunes 1.1 in ResEdit.

In the SoundJam window, copy the aedt and aete resource icons to the clipboard. Switch to the iTunes window and paste the resources from the clipboard. A dialog box will ask how you want to handle duplicate ID numbers. Click the Yes button to replace the current resources.

iTunes is now scriptable with many of the same features as SoundJam. Open the modified iTunes Dictionary in the Script Editor to see your choices. I created four simple Applets and assigned them to Function keys.

tell application "iTunes"
pause
end tell
tell application "iTunes"
play
end tell
tell application "iTunes"
next track
end tell
tell application "iTunes"
previous track
end tell

Now I can control iTunes in MacOS 9 without having to bring the application to the forefront. This modification does not work with the MacOS X version of iTunes. In this case, the best solution is to use the dock applet to switch tracks.

Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets

Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement. [an error occurred while processing this directive]