I am trying to run AppleScript commands from Couch Slouch, an AppleScript software Which has 6 built in functions and takes AppleScript commands. These can run through a pulse eight HDMI-CEC usb to control your tv from your Mac.
The built in functions are
CouchSlouch_TVOn()
CouchSlouch_TVOff()
CouchSlouch_BecameActiveTVSource()
CouchSlouch_LostActiveTVSource()
CouchSlouch_MacAwoke()
CouchSlouch_MacSlept()
An example script is posted
tell application "Couch Slouch”
if cec device is available and not tv is on then
turn on tv
end if
end tell
However, AppleScript won’t compile it due to wrong syntax.
What is wrong with the code?
I am confused how to find the name of the TV or CEC device by my Mac as well.
Any tips? Help?