I am fairly new to AppleScript and have been primarily using Macscripters.net for examples. However, I am embarking on a project that, while somewhat simple on the outside, requires something a bit more complex on the inside.
Here's what I what to accomplish:
I'm writing a series of scripts that need to check to see the boolean status of a few different things. Using Insteon hardware and Indigo 4, I want a database to maintain the following things:
Entertainment System is on {true or false}
Patio door is open {true or false}
Person #1 is home {true or false}
Person #2 is home {true or false}
*and if it's possible, though not immediately necessary in my first version, I'd like a log to keep track of the last 50 times the front door was opened. This wouldn't be a boolean status... it would be a series of time and date stamps.
My instinct is that this data could be retained in a simple .rtf document and called upon using text delimiters each time when a script needs to decide what to do using a if / else statement. Though this seems like it might be archaic.
As I said, I'm new at this, so I'm looking for pointers or examples if anyone could spare a moment. Thank you.
Here's what I what to accomplish:
I'm writing a series of scripts that need to check to see the boolean status of a few different things. Using Insteon hardware and Indigo 4, I want a database to maintain the following things:
Entertainment System is on {true or false}
Patio door is open {true or false}
Person #1 is home {true or false}
Person #2 is home {true or false}
*and if it's possible, though not immediately necessary in my first version, I'd like a log to keep track of the last 50 times the front door was opened. This wouldn't be a boolean status... it would be a series of time and date stamps.
My instinct is that this data could be retained in a simple .rtf document and called upon using text delimiters each time when a script needs to decide what to do using a if / else statement. Though this seems like it might be archaic.
As I said, I'm new at this, so I'm looking for pointers or examples if anyone could spare a moment. Thank you.