Help AppleScripting iTunes

newelement

Registered
I started writing an AppleScript for iTunes which for some reason doesn't seem to be portable between two of my machines. I just tested a simple script on a PowerBook G4 running 10.3.8 with iTunes verions 4.7.1 (30) and AppleScript version 1.9.3:

tell application "iTunes"
set sound volume to 100
end tell

It works fine on that machine, but when I try to run this on my Mac mini, with the same version of each software compnent, I get an AppleScript error:

The variable volume is not defined.

I am fairlly new to AppleScript. Maybe this simple script is too simple. Am I missing something that makes this non-portable?
 
The only idea I have is that maybe AppleScript doesn't know where iTunes is on the other machine, but isn't asking you because the script is already compiled. Not sure if that makes sense, but if I'm right, it should work if you copy the text of the script into a new script, and then run that new script.
 
Back
Top