What’s wrong with this?
tell application "iTunes"
if selection is not {} then
set songList to a reference to selection
set songCount to (count of items in songList)
set threeMore to addThree(songCount)
display dialog threeMore
end if
end tell
on addThree(num)
return num + 3
end addThree
I keep on getting “iTunes got an error: Can’t continue addThree.”
Model: PowerBook G4, iMac G5, MacBook
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.4) Gecko/20070509 Camino/1.5
Operating System: Mac OS X (10.4)