- Posted on
Sun Sep 28, 2008 9:50 am
-
JeffS
offline
-
- Posts: 34
- Joined: Jul 14, 2008
Jay-
I figured out what my original problem was here - I have a startup account that automatically launches Indigo and PhoneValet, and I leave this account active when I leave my computer and just sleep my display. This allows me to use AirFoil and actively screen calls throughout the house, and hear other Indigo spoken messages, and then when someone actually logs into their own account (i.e. someone is actually AT the computer), the sound is directed to back to the computer. This works great - as long as you keep all of your rights in check. The problem I had is that I had edited the background script under my personal account, and the startup user account did not have rights to run it then. After I went back and fixed the rights issue and rebooted everything works fine.
One other issue I did have was trying to get the script to STOP playing a sound when there were new messages. Since the script had already been run once, it had already created the variable "scriptShouldSoundAlertVar", and set it to "true". I am new to AppleScript, but just changing this code to set it to "false" did not work - I assume because it had already been created, and therefore did not execute the line again. I tried adding and "else" that set scriptShouldSoundAlertVar to "false", but this did not work either (again, I'm not sure my syntax was correct here anyway). So I ended up commenting out the entire "if" statement that checked the variable and played the sound, and that works fine - in fact it sped up the response time to the change in message count since it did not have to loop through that code anymore.
The end result is that I have an LED candle (that I got essentially for less than free when SmartHome put a bundle on sale including a ControLinc, ApplianceLinc, and the LED candle for $50) in my living room that turns on when I have new messages, and turns back off after I have listened to them. This works great, and if you don't want to check your messages right away (i.e. you just screened a call that you don't care about, or you are in bed and just want to listen to the message in the morning...) it is MUCH less annoying than having a sound being played throughout the house until you do!
Thanks again for your support, it is greatly appreciated!
Jeff