tell application "EyeTV" to set stationname to station name of currently playing channel
tell application "EyeTV" to set currenttitle to title of currently playing channel
tell application "EyeTV" to set currentdesc to description of currently playing description
Hi, i know that, but since i’m really bad in scripting, i dont know how to solve this and how to get those 3 information from EyeTV. There is “current channel”. Thanks
Q: Can I use AppleScript to control EyeTV?
A: Yes, EyeTV is fully AppleScriptable. A document which details the syntax, “EyeTV and AppleScript”, is available on the EyeTV CD-ROM or documentation download.
The pdf mentioned my macman is a very good documentation, all properties are described, and there are a few examples
station name, title and description are properties of a recording or a program, but not of a channel.
On my machine all station names of the recordings are just an empty string.
The current playing window is always player_window 1
maybe this helps you
tell application "EyeTV"
set stationname to name of player_window 1
-- get recordings whose title is in stationname -- doesn't work :(
repeat with i from 1 to count recordings
tell recording i
if title is in stationname then
set {currentdesc, currenttitle} to {description, title}
exit repeat
end if
end tell
end repeat
end tell
Thanks. There is small problem with that. If i go Recordings category and open recording using contextual menu by selecting “Edit” then that script tells that EyeTV is recording even it is not?