Itunes script no longer works in 3.0.1, but worked in 3.0...
Itunes script no longer works in 3.0.1, but worked in 3.0...
- Subject: Itunes script no longer works in 3.0.1, but worked in 3.0...
- From: "John C. Welch" <email@hidden>
- Date: Sun, 09 Mar 2003 12:42:02 -0500
Okay, so tell me two things:
1) why "theTrackList" suddenly turns up as an empty list in the following:
set theEQList to {}
try
tell application "iTunes"
activate
set numberOfEQPresets to the number of EQ presets --get the number
of EQ presets in your setup
repeat with x from 1 to numberOfEQPresets
copy the name of EQ preset id x to the end of theEQList --create
a list of names of presets
end repeat
end tell
copy "None" to the beginning of theEQList --no EQ setting
set EQName to choose from list theEQList ,
with prompt "Select the Equalizer Preset to use for all your tracks"
without multiple selections allowed and empty selection allowed --select
your setting
tell application "iTunes"
set theTrackList to every file track --get the list of all your file
tracks on your HD
repeat with theTrack in theTrackList
set EQ of theTrack to EQName --apply the EQ setting
end repeat
end tell
on error
quit
end try
When it worked correctly in iTunes 3.0
2) Why can't I get properties of any playlist:
Tell application "iTunes"
Set theTest to time of the library playlist
End tell
Fails with 'can't get time of ...' error, but time is a property.
This is a rather necessary script, since, for some reason, the *VERY SMART*
programmers for iTunes decided that you can't just select all of the tracks
in iTunes , display the EQ settings, hit the one you want, and then have it
apply to ALL of them. No, you have to select all, get info, and then it the
EQ setting.
Because why would you want direct manipulation on a mac?
john
--
"March or Die"
- French Foreign Legion
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.