Hi
My next project is an “alarm center”.
I have in mind a system using several apps and hardware, all of which supports applescript.
i will have two (de-/)activating methods, one via an RFID reader that triggers an applescript event via keyboard maestro.
the second is with a RF remote which is connected via a arduino that gives out a command via serial connection. the serial connection again triggers an applescript (SerialPort X from MacSoft).
these two input methods are just an on/off event.
when the alarm system is “on”, the arduino board turns on some lights at 30% with a relay so that in the room there is always a little bit of light.
at the same time, EvoCam activates the webcam and checks for motion.
as soon as motion is detected EvoCam triggers as VoIP Call with Dialectic (applescript’able VoIP) to my cell phone.
at the same time, quicktime plays an alarm sound (not too loud thou) via applescript, and the lights are turned 100% on via serial connection on the arduino.
as you see, there are in total 4 different applescript applications involved.
maybe even two more if i add bento and/or PHP backend.
well what i want to do, if possible, is a central application that handles all the different apps and connects them together.
so that any app (that supports applescript) could trigger my application like this
“tell securityCenter to set alarmState to true”
where “securityCenter” is my own app of course and alarmState is the state the alarm system is in.
so, is it somehow possible to call a function or something like that on my app via another applescriptable application?