What won’t this work for me?
set DPresent to boolean
tell application "iTunes"
set visible of window "iTunes" to true
tell window "iTunes" to set minimized to false
end tell
tell application "System Events"
tell process "iTunes"
tell rows of outline 1 of scroll area 1 of splitter group 1 of splitter group 1 of window 1
set DPresent to ((name of static text 1) as Unicode text)
if DPresent contains "Downloads" then
set DownloadsTrue to true
else if DPresent contains "STORE" then
set DownloadsTrue to false
end if
end tell
end tell
end tell
I keep getting a NSEvaulationScriptError thing.