Bluetooth, Applescript and a Palm

I love to tinker with my gadgets and every now and then I dive into Applescript to write some nifty script that automates whatever I think I cannot do manually anymore. Today is such a day.

On my Palm T3 I have a handy little freeware application called Currency, that can calculate prices in different currencies. I started using it many years ago and I had a little sync utility installed that would update the currency rated every time I synced my Palm. After the introduction of the Euro, there was not much use for the program since I didn't go abroad a lot to non-Euro countries. Lately I started using it again. It's very easy to figure out how much you're spending on Amazon and such. Since the location of the update files changed over the years and since I've moved from Windows as my primary OS to Mac, the Palm syncing isn't as frequent as before. So I needed something that would help me remember where the update file was and put it where I need it whenever I decided to sync my Palm. So this is the script I came up with:
#! /bin/sh
cd /Users/me
/usr/local/bin/wget http://currex.sf.net/cupdate.pdb
mv cupdate.pdb /Users/me/Documents/Palm/Users/me/Files To Install/
cd -
Today I decided that this wasn't automated enough. I needed to write an Applescript that not only gets the file but also sends it to my T3 using Bluetooth. I managed, but I'm not satisfied yet. I need to switch the Bluetooth on and of manually on the Palm and I need to press a button in the Bluetooth File Exchange program before the file is sent. I'll tinker on it more and post the updates here. For those interested I based my script on a MacOSXHints post.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.