Back to all How-tos

Creating an Address Block

An Address Block is simply a group of different fields in your record that form an address. You know, that thing the mailman requires to know where a letter has to go? Yeah, that. When sending letters, you’re probably already using pre-printed envelopes that have a plastic window showing the address that’s on the letter inside, which of course greatly simplifies mass mailing.

To create the address block so that it can be used and placed exactly where that window is, there is a simple trick which takes advantage of the way Text Scripts work.

Creating the script

  1. First, create a new Text script from the Scripts pane.
  2. Make the selector “Text”, and type in @address@ in the Selector box. Give it a great, witty name such as Address Block
  3. Build the script according to the fields you have in your data. Each field needs to be on its own line, which you can add with the + on the right. Additionally, you can add extra data in the Prefix and Suffix boxes. If a field is empty, the prefix and suffix can be ignored, which means you can add line returns and static text, such as:
    • Field Gender, Suffix: one space
    • Field FirstName, Suffix: one space
    • Field LastName , Suffix <br/> (which adds a line return!)
    • Field Company , Suffix <br/>
    • Field Address1, Suffix <br/>
    • Field Address2, Suffix <br/>
    • Field City, Suffix: , (comma then space)
    • Field State, Suffix: two spaces
    • Field Zip

This creates a block that would look like this:

Gender FirstName LastName
City, State ZIP

The beauty of this is simply that if the Address2 field is empty, that whole line, including the <br/> line return, will be absent, so the city/st/zip line goes up or down one position.

Adding the address block to the template

Next is to position this address block in the appropriate location of the template. This is done very easily by using a positionned box. Click on InsertBoxPositioned Box. Inside the box, type in @address@ , and then adjust the box to the appropriate dimensions by using its properties. While it’s selected, you can move and resize it using the attributes pane:

  • Width: Enter the width in whichever unit you wish. For example, 2in for 2 inches.
  • Height: Same as above, for the height of the object. Or, leave it as-is to auto-adjust height.
  • x-pos: Enter the horizontal distance from the left edge of the page.
  • y-pos: Enter the vertical distance from the top edge off the page.

What about a bottom-aligned block?

Doing a bottom-aligned block is only slightly more tricky but not by much. Simply put, to do a bottom-aligned box, you need to measure the distance between the bottom of the page to the bottom of the address block (the positioned box) rather than from the top. Then, this measure is added in the properties of the block itself.

  • Right-click on the positioned box and click Box...
  • In the Box tab, locate the Positioning group.
  • Enter the measure value in the Bottom box. This can be something like 6.25in, for example.

But I want a barcode, too!

Of course you do! Adding in the appropriate mailing barcode can save you tons on shipping letters, we know that. So, there are a few barcodes that can be added to your address block, and very easily so.

  • Click after the @address@ placeholder, and hit SHIFT+Enter to add a line return
  • In the Insert menu, click Barcode and select the appropriate barcode for your region (for example, USPS IMB/OneCode, Royal Mail, AustraliaPost, etc).
  • Use the Script Wizard to enter the appropriate information for the barcode, depending on the type.

You’ll probably want to adjust spacing and such for the barcode, you can do that by right-clicking on it after the data has been entered, and select <barcode type>... to adjust the barcode properties.


Leave a Reply

Your email address will not be published. Required fields are marked *

All comments (1)

  • Fredrik

    Perhaps it would be better to use prefixes instead of suffixes? If say that last name is missing from the input in your example then there would not be a line return between the first name and the company name. If the line return after last name is instead added as a prefix to the company field (and so forth) a new line would be added if there is content to display on a line.