exec32 Scripting Language
Using Scripts
exec32 scripts can be used to automate repetitive processes. They can also "drive" other Windows
applications. Here are some ideas I use:
- In Outlook, I have made a vCard for myself. This is a file that I can send in an email that,
when double-clicked on, will add an entry to the recipient's Outlook Contact list or Palm Desktop.
I don't want to send a vCard with each email, so I have a script that will set focus to my open
email, and adds the text "Please see my vCard, attached...". It then does an Insert, Attach
File, and adds the vCard. I then send the email.
- I get technical bulletins that I need to re-distribute to certain folks in our organization. I
also need to archive the text. I have written a script that directs Outlook to forward the email.
It inserts the email addresses of all the recipients. In the message body, it inserts a few sentences
describing the bulletin, where to find the archive, and instructions of how to be removed from the
list. The script finishes by copying the contents of the bulletin and appends it to the top of a
text file out on a file server. I look the message over, and click the send button. My involvement
was two clicks.
- I like to have local news delivered to my Palm Pilot. I have a script that runs each day. It goes
out to our local newspaper's website, (using the exec32 web clipping function), and retrieves the
news text from a series of pages into variables. The script then writes out a complete website
in my TEMP directory, less the advertisements and graphics. It then calls iSiloWeb to create an
iSilo document, and then HotSync's it to my Palm device.
- I edit a lot of text files on my computer, such as project notes, my services and host files,
web pages, etc. It's a pain the have to navigate to a certain directory, and edit the file.
I wrote a script that presents a dialog where I enter a code phrase for the text file I want to
edit, such as "services". A case statement in the script assigns the appropriate string. The
script opens c:\winnt\system32\etc\drivers\services in my text editor.
- Often I see text in email or on web pages that I would like to save, but I don't want to clutter
up my drive. Where will I begin to look for it when I need it later? I have a script
called "Snag this text". I select the text I would like to snag, and run the script. It ALT-Tabs
to the window behind exec32, copies the text to the Clipboard, and appends it to a certain text
file. A similar script snags text and puts it on my Palm Pilot. I can then read it later, at
my convenience.
Back...