Eye TV AppleScript
Hy, i need help to write an applescript to check if EyeTv is recording or no. because in one case i will do something in the other something other.
thank you
Apple Event: May 7th at 7 am PT
Hy, i need help to write an applescript to check if EyeTv is recording or no. because in one case i will do something in the other something other.
thank you
EyeTV 3 has a scripting dictionary which you can find via the File menu in AppleScript/Script Editor. It also comes with triggered scripts which are described on page 56 of the EyeTV 3 software manual (PDF). Unfortunately, since this is $80USD software, and requires an activation key. Only someone that has it installed and hence, has access to the scripting dictionary can help you. I don't have the software. EyeTV Lite has been discontinued as it no longer worked with Yosemite.
Unfortunately scripts in the manual doesn't help me.
thanks for help
Actually, what you need is included with the El Gato EyeTV 3 software. One of the included triggers, RecordingStarted can be used to display a dialog, or even speak that recording has started. Here is some EyeTV 3 AppleScript trigger usage. You will need to check the following against the EyeTV 3 AppleScript scripting definitions. I put this script together from pieces of the code shown in the link above.
tell application "EyeTV"
activate
set newrecording to (recordingID as integer)
set isshow to get the title of recording id newrecording
if RecordingStarted(newrecording) then
dialog "Recording has started for " & isshow
-- say "Recording has started for " & isshow
end if
end tell
return
on RecordingStarted(arecordingID)
return (true as boolean)
end RecordingStarted
Thank you!
Eye TV AppleScript