my things are simple ones like these below, i got aways into it, but stuck passing command to other app (iRed2)... tried osascript, didn't work either.
ANY thoughts/advice/scripts! are so much appreciated. trying to finally move on from as, but... can't quite manage it myself.
- Code: Select all
using terms from application "Indigo 7.3"
on RemoteControl(myRemote, irCode)
with timeout of 3 seconds
try
set RemoteDev to {myRemote, "/", myRemote} as string
using terms from application "iRed2.app"
tell application "iRed2.app" to «event ird2IpAC» given «class acti»:(«class ICOD» irCode of «class IRAG» RemoteDev)
end using terms from
on error
tell application "Indigo 7.3"
«event INDOLog » "error" given «class LgTy»:"iRed:"
end tell
end try
end timeout
end RemoteControl
end using terms from
- Code: Select all
-- Security Spy Camera Control Handler
-- dtich, 1/07
-- examples: CameraControl ("guest room","active"); ("","passive")
on CameraControl(Cam, CamCmd)
set SecSpyTimeout to 3
with timeout of SecSpyTimeout seconds
try
using terms from application "SecuritySpy"
if CamCmd is "active" or CamCmd is "passive" then
if CamCmd is "active" then
if Cam is "" then
tell application "SecuritySpy"
set schedule preset "all capture"
end tell
else
tell application "SecuritySpy"
set schedule "Armed 24/7" camera name Cam
end tell
end if
end if
if CamCmd is "passive" then
if Cam is "" then
tell application "SecuritySpy"
set schedule preset "all off"
end tell
else
tell application "SecuritySpy"
set schedule "Unarmed 24/7" camera name Cam
end tell
end if
end if
else
tell application "Indigo 7.3"
«event INDOLog » "Command Error - Mode Not Found" given «class LgTy»:"Security Spy:"
end tell
--return
end if
end using terms from
end try
end timeout
end CameraControl
adding some screenshots because the code didn't compile without the lib/dict on this machine.. the real terms are in the screen shots... thx