I regularly send AppleScript commands to my Mac from my cellphone.
Here's how:
1. I got a broadband connection (cable modem) so I'm always connected to the internet. I could have had my Mac log on via a phoneline and accomplish the same thing but dialup is slow and I like the Mac to listen for a command every 30 seconds or so.
2. I established a dedicated email address for my Mac. The address is checked for particular key words and all other mail is discarded (no spam). I could have used an Instant Messaging (IM) address to do this but I went with email as a shortcut.
3. When an email is recieved at my Macs dedicated address my email application automatically runs an applescript. I use Entourage but most other Mac based email aps can be triggered to run a script.
4. The subject line of the emails I send are also the names of my applescripts I want to run. When the email is detected, the first script gets the subject line from the mail and uses that text as the name of the next script to run. (My subject-line and my applescript-name must match exactly for it to be treated as a command.)
5. I then use the voice dialing feature on my (Motorola/Verizon) mobile phone. Instead of activating a phone number when I speak, I have it set to activate a preset email which is stored in my phone's shortcuts. By speaking the command and confirming by pressing 'send' -- the email with the 'command' in the subject is recieved by my Mac and my script of the same name is activated.
The best part is that whenever I want to add a new speakable command, I can now simply type in a new command in my speed dialer. As long as there is a script of the same name in my home computer, it will be run. I don't have to edit any code or preferences file, it just works!
Examples currently in use:
- By using dialModemOSAX.osax I can have the Mac dial phone codes including turning call forwarding on or off. This allows me to transfer phone calls from my home phone to my mobile phone on the fly or turn off the feature if I need to call home.
- I use one really cool script to read my schedule and send a copy via email to my phone. This allows me to retrieve my schedule and other important info on the road.
- 'Remote Parenting' I can actually have the Mac read out loud and repeat the message until someone presses the button on the alert window. The most frequently used announcement is "Call dad! Call Dad!". (Used when my teens won't get off the phone.)
Although this is all being done on a MacG4 with Jaguar, I'm pretty sure most of this will work in OS9 (or earlier) as well. Voice dialing, email, triggered scripts, modem dialing OSAXen, and AppleTalk are all pretty standard stuff. It's linking things together that makes 'em cool!
I hope this helps with your concept of remotely dialing in to the Mac. It's not the same as talking directly to the Mac (which is what I set out to do) but it's pretty darned close! If anyone needs the actual scripts let me know and I'll post a copy (with sample commands of course.)
-Mr.Science
[
www.theMrScienceShow.com]