< Usage | Preferences > |
Tags follow the following (XML compliant) syntax.
<ab:tagname label="label attribute" number="optional item number" default="optional default value"/>
where tagname is one of the tags listed below
<finder:file name="path/filename"/>
Examples for such tags are
Tag | Address Book value inserted | Label attribute | Number attribute | Default value |
ab:first_name | First name. | No | No | Optional |
ab:last_name | Last name. | No | No | Optional |
ab:title | Prefix | No | No | Optional |
ab:suffix | Suffix | No | No | Optional |
ab:phone | Phone number. | Optional | Optional | Optional |
ab:email | Email address. | Optional | Optional | Optional |
ab:note | Note. | No | No | Optional |
ab:address.street | Street of Address. | Optional | Optional | Optional |
ab:address.state | State of Address. | Optional | Optional | Optional |
ab:address.zip | ZIP of Address. | Optional | Optional | Optional |
ab:address.city | City of Address. | Optional | Optional | Optional |
ab:address.country | Country of Address. | Optional | Optional | Optional |
ab:address.country.code | Country Code of Address. | Optional | Optional | Optional |
ab:custom | Value of the custom field (aka related names) with "my_label" as label. | Required | Optional | Optional |
ab:middle_name | Middle Name | No | No | Optional |
ab:organization | Organization | No | No | Optional |
ab:department | Department | No | No | Optional |
ab:job_title | Job Title | No | No | Optional |
ab:birth_date | Birth Date | No | No | Optional |
ab:birth_date.day | Day of Birth Date | No | No | Optional |
ab:birth_date.month | Month of Birth Date | No | No | Optional |
ab:birth_date.year | Year of Birth Date | No | No | Optional |
ab:aim | AIM Username | No | No | Optional |
ab:icq | ICQ Username | No | No | Optional |
ab:msn | MSN Username | No | No | Optional |
ab:url | URL | Optional | Optional | Optional |
ab:home_page | Home Page | No | No | Optional |
ab:nickname | Nickname | No | No | Optional |
An address book tag may have any of the three attributes label, number and default. The label and the number attribute let you select items from entries which are not unique for a person. For example you may have 3 home email addresses and 2 work email addresses. The default attribute allows you to specify a default value which is taken in case the selected address book entry is empty.
You may use any label supported by the Mac OS X Address Book. Note hat the label as you see it in Address Book might be different from the label you have to use to access the entry, e.g. because your System is set to a non-english language.
Label | Address Book value | Applies to |
work | Work | phone, email, address |
home | Home | phone, email, address |
mobile | Mobile phone number | phone |
Tag | Result | Name attribute | Default value |
finder:file | Insert an attachment consisting of the file specified by the name attribute | Required | No |
If the corresponding Address Book entry for email is empty, no message will be generated for this person.
Note that the <ab:custom label="my_label"/> tag makes the script very powerful and versatile. You may specify your own labels in the "related names" section of the persons Address Book entry (e.g. "Assistant", "Customer number") and the script will replace the corresponding tags (e.g. <ab:custom label="Assistant"/>, <ab:custom label="Customer number"/>) by the corresponding Address Book values.