this is the script:
- Code: Select all
set media to "eppc://media:****@10.0.1.6" --remote machine property
property eyetv_playerstate : ""
property eyetv_active_state : ""
using terms from application "System Events"
tell application "System Events" of machine media
if exists process "EyeTV" then -- Eyetv is running
set eyetv_active_state to "running"
tell application "EyeTV" of machine media
if playing then
set eyetv_playerstate to "playing"
else
set eyetv_playerstate to "stopped"
end if
end tell
tell application "IndigoServer"
if not (variable "eyetv_playerstate" exists) then ¬
make new variable with properties {name:"eyetv_playerstate", value:eyetv_playerstate}
if "eyetv_playerstate" is not equal to (value of variable "eyetv_playerstate") then
set value of variable "eyetv_playerstate" to eyetv_playerstate
end if
end tell
else
set eyetv_active_state to "quit"
end if
end tell
end using terms from
i get the error that system events is not running. I just cant find a website where there is a good explanation about this error.
i hope someone has a tip!