I am trying to write an AppelScript that will i) turn on my SONOS music system when it detects the presence of my iPhone [i.e. when I come home] and ii) turns off my SONOS music system when it does NOT detect the presence of my iPhone [i.e. when I leave the home]*. I have written a script that pings my iPhone's IP address to determine its absence or presence but have run into three problems [for now...I am sure I will run into more down the road]: 1. I cannot for some reason successfully ping my iPhone when wirelessly connected to my LAN. I do not why this is happening as I can ping my Win 7 laptops, etc. I attached the results of my ping attempts. I would appreciate any and all assistance in solving this because without this working I don't know how else to test the absence / presence of my iPhone. 2. I don't know how to get the script to continuously run repeatedly in the background to continuously test the absence / presence of my iPhone as I come and go from the house...please help. 3. If the above discussed script is called iPhonePresences whose output is a variable called iPhoneStatus then how do I call / reference / use iPhoneStatus in another script. Thanks for all your help, Joel * I will sorry about / work on the specific tracks / stations I want played as a second project / step after I get the basis on / off working.