Scripting a template

I’m trying to modify the Address Book Card template and script to create my own database. Let’s say I have a marked up file “baseball cards.txt” and I want to use this data to populate templates.

How do I point the script at “baseball cards.txt”? The Address Book Card uses the application, but I wish to use a file. I’m not much of a scripter as you can tell.

Any help would be appreciated.

Wolfie

This depends heavily on the contents of the file as the AddressBook application is scriptable whereas files have to be parsed & handled by the script.