Pilot Address Lookup

I wrote a Perl/Python script to lookup an address in my PalmPilot's synced address.dat file. This is the local file where the pilot's address information is stored whenever a HotSync is performed. Here is an example of how it is used:

It is very handy since I stare at a shell or DOS prompt most of the time and don't want to bother reaching for my pilot or firing up PalmPilot Desktop whenever I want to make a phone call. You probably need to be familiar with either Perl or Python in order to use the script. The script has only been tested with Palm Desktop 3.0 under Windows. The address parsing code is based on code and documentation by Scott Leighton.

To use the lookup script:


Download

lookup is available in two flavors:

Installation

You probably need to be familiar with either Perl or Python in order to use the script.

  1. Download the script.
  2. Modify the DIR variable within the script to point to your Pilot's address directory. This usually looks like:
       <pilot install dir>/<pilot user name>/address/
    
    so you might change DIR to read (in Perl):
       #       <pilot install dir>  /<usr>/address/
       $DIR = "d:/Program Files/Palm/AdamP/address/";
    
  3. Install it as you would any other script on your local system. This may involve adding a line to the top of the script, using a 4NT extension alias, or writing a batch file. If you don't know how to use Perl or Python this may be difficult for you.

Usage

lookup will search each address for the string(s) you specify on the command line. If a Pilot contains this address:
   Adam Doppelt

   Home: 650 555-1212
   Email: amd@gurge.com

   555 Mission Ave Apt 007
   Mountain View, CA 94043

   Note:
   Adam is a swell guy.
It can be located using any of the following commands:

   > lookup adam
   > lookup dop
   > lookup adam d
   > lookup swell
   > lookup mission ave
   > lookup gurge
   > lookup 555

Back to Adam's Page