Automating Envelopes using Address Book

I have created a template in Pages 09 for an envelope. When I want to create an envelope I have to open Pages, open Address Book, drag an address book label over to the envelope and then print. Seems like I should be able to script Address Book so that I can just select one or more addresses and then select the script and it will make and print the envelope.
Anyone know of any script like that?

Here is a script which was posted by
Michael Ghilissen
Objet : AddressBook / TextEdit contact printout
Date : 1 décembre 2008 14:53:38 HNEC
At : [email protected]
tell application "Address Book"
set thePerson to get selection as list
repeat with i from 1 to count thePerson
set theFirstname to ""
set theLastname to ""
set theJobtitle to ""
set theOrganization to ""
set theEmails to {}
set thePhones to {}
set theURLS to {}
set theAddresses to {}
set theFirstname to (first name of item i of thePerson)
set theLastname to (last name of item i of thePerson)
set theJobtitle to (job title of item i of thePerson)
set theOrganization to (organization of item i of thePerson)
repeat with theRef in (get every email of item i of thePerson)
set end of theEmails to {label, value} of theRef
end repeat
repeat with theRef in (get every phone of item i of thePerson)
set end of thePhones to {label, value} of theRef
end repeat
repeat with theRef in (get every url of item i of thePerson)
set end of theURLS to {label, value} of theRef
end repeat
repeat with theRef in (get every address of item i of thePerson)
set end of theAddresses to {label, street, city, state, zip, country} of theRef
end repeat
set theNote to (note of item i of thePerson)
-- convert list to text
set old_delim to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set theEmails to theEmails as text
set thePhones to thePhones as text
set theURLS to theURLS as text
set theAddresses to theAddresses as text
set AppleScript's text item delimiters to old_delim
tell application "TextEdit"
activate
set E to make new document at end of documents with properties {name:"AB Contact"}
tell E
set its text to ("AddressBook Contact" & return & return & return & ¬
"Name " & theFirstname & " " & theLastname & return & ¬
"Company " & theOrganization & return & return & ¬
"Address " & theAddresses & return & return & ¬
"Website " & theURLS & return & ¬
"Email " & theEmails & return & return & ¬
"Phone " & thePhones & return & return & ¬
"Note " & theNote & return) as text
repeat with k in {"Name", "Company", "Address", "Website", "Email", "Phone", "Note"}
set (the color of every word where it is k) to {38000, 38000, 38000}
end repeat
set (the word of every word where it is "missing") to ""
set (the word of every word where it is "value") to ""
set the font to "Helvetica"
set the size to 14
set the font of paragraph 1 to "Helvetica Bold"
repeat with l in {"work", "home", "main", "fax", "mobile"}
set (the font of every word where it is l) to "Helvetica Italic"
end repeat
end tell
print document "AB Contact"
close document "AB Contact" saving no
end tell
end repeat
end tell
Have fun
Yvan KOENIG (from FRANCE mercredi 18 février 2009 16:57:49)

Similar Messages

  • How do I print envelopes using Address Book?

    I am having trouble getting envelopes to print properly from Address Book in Lion.  I have specified size #10 envelpes.  When I print them, the text printed on successive envelopes moves further and further down the page until the address drops off of one envelop and is then printed at the top of the next envelope.  If I print to PDF, I see the same behavior.  I have an HP OfficeJet 7600 printer.
    Also, when I switched to size #9 envelopes without making any other changes, the envelopes were printed as though I had switched from portrait to landscape.
    Can anyone tell me how to fix these problems?  I am so disappointed because what looked like a really quick and easy way to print envelopes has now taken hours and I only have 3 remotely satisfactory envelopes printed and no hope of getting more other then to do them one by one.

    I have a similar problem too. I might be mistaken, but I think it creeped in when I "upgraded" to Lion and the foobarred the addressbook and who knows what else. It used to work just fine.
    I have had luck printing envelopes with the Ambrosia widget. Very nice and free, Give it a try.

  • HT1338 How do I address multiple envelopes using Address Book in iMac-Lion?

    How do I us iMac to address multiple envelopes with different names and addresses?

    Just select the addresses you want to print, and go to the Print command in the Address Book File menu, and select the following:
    Of course you have to make sure your printer supports printing multiple envelopes of the kind you wish to print.  So try one, and then try a few, before doing a lot.

  • New iMac with OS x Lion.  Printing envelopes w/ Address book makes a second blank envelope. Drivers up to date. Have to mark print only first page. Had no problem with Snow Leopard. How to correct.

    I recently purchased a new iMac with OS x Lion. Previously was using a four year old iMac with snow Leopard. I have three HP printers with up to date drivers for Lion.  When I try to print an envelope from Address Book I have two problems:
    1) I have to change the orientation to vertical to get the proper margins, which I never had to do before and
    2) It prints a second blank envelope unless I tell it to only print the first page.
      Neither of the problems occurred with my previous iMac/w Snow Leopard  and it appears to be a Lion/HP software incompatibility. I have worked with a Apple supervisor (Case # 316225300) for hours and finally reinstalled the operating system to no avail.
    I do I correct both problems???

    Contact HP and ask them to write better drivers for Lion. Find a printer that is more compatible with Lion. I've not printed envelopes with Lion before, though I've had no difficulty with either Epson Artisan 810 or Canon MX700 for regular printing.  Sometimes open source drivers also work better than manufacturer drivers.  See this FAQ*:
    http://www.macmaps.com/printersx.html
    While many open source drivers won't give you duplex or printer diagnostics, at least they may work better for other features. 
    Lastly, I've often found for a more consistent print, saving as PDF, and then printing from Preview can sometimes be the best work around.  Someone in the Mac OS X Technologies forum might be able to help you write an automator script to do this in one fell swoop, if you find it works better for your needs.

  • How to clear image in sender label to print envelopes from Address Book

    Hello!
    I had been printing envelopes for greeting cards using Address Book. I had always ignored the "Image" option under "Label" for the +sender's information+. Today I decided to explore this option and clicked on "Set". Then I chose a picture from my "Pictures" folder. It looks nice and I was able to change the picture several times, but now _I do not want any "image" in the sender's label_.
    *How do reset the "Image" to none?*
    Thank you in advance for your assistance!
    Osk Asks

    Hello captfred! Thank you for your reply. I tried to do what you suggested but it seems that it only works for cards in my contacts or for my own card. My problem is within the settings under label when I am printing from Address Book.
    This is how I have been doing it:
    1) Select a contact or a group of contacts
    2) Click on File on the top of the screen and then select Print
    3) A window pops up and there I can choose whether I want to print an envelope, a list, or mailing labels
    4) In that same window is where I clicked on "Image" and "Set"
    5) Finally I click on "Print" on the bottom right corner and I get neat envelopes with my address (sender) and the recipients (my contacts)
    I hope this helps you to help me!
    Thanks in advance!
    Osk Asks

  • I'm trying to print a custom envelope fro address book and keep getting the message No Pages were selected from the document.

    I'm trying to print a custom envelope from Address book using one of my groups. I keep getting a No Pages were selected message. Anybody have any Ideas?

    Hello, I find that only entries with Home or Work filled in with an address will show.
    Might try right clicking on this link & saving Apple's Addy, then import this vCard, select it & see if it shows one envelope...
    http://web.fastermac.net/~bdaqua/AppleComputerInc.vcf

  • Using address book to print mailing labels

    Hi all
    I am trying to print mailing labels using the addresses in my address book. In the past, I had a PC and was able to put in a title such as "The Smith Family" and it would be simply applied to all labels by exporting only the last name and of course the address. How do I do this using address book?
    Thanks so much for your tips.

    Here's a way to get somewhat similar behavior. Hopefully you can adjust it to get the best result.
    1 - Select a card that you want to print
    2 - Choose the Card > Add Field > Related Names menu item. If that menu item is grayed out, you can just press the Edit button
    3 - Find the related names fields in the card. They have default labels of "friend" and "assistant". Click on one of the labels and change it to "spouse"
    4 - In the field for the spouse label, type "Family" for example
    5 - Press Edit to close the editor and save the card, then print
    Now the envelope or label will be addressed "Bill Gates and Family".

  • Opt in Page using Address Book

    Does anyone know if I could create an opt In page using Address book for my blog? Thanks. I'm new to MacBook Pro.

    You'll probably need to write an AppleScript or Automator workflow to process the information from your source to Address Book. How easy this will be will depend on how the information is processed from your blog and stored (i.e. in a database of some sort, just emailed to you, etc.) Unless someone else knows of prepackaged software I don't, this probably isn't going to be simple to accomplish.
    Since this isn't related to your Mac hardware, you might get more suggestions if you ask in the AppleScript forum.
    Regards.

  • How do I see a list of all my Apple Mail contacts. I do not use address book. I just want to see all the email addresses stored on my Mac

    Hi All,
    I have been using Mail for the past three years without need to send a regular mailing list mailout.
    I now need to send group emails and all I want to do is browse my contacts aquired over the last three years to create a list. I have not used Address Book for anything other than phone contacts so please do not point me in that dirrection.
    There must be a list of all email contacts stored somewhere on the Mac that I can look through. It is an almost impossible task to do this by browsing my inbox/sent folders.
    Hope you can help and thanks in advance!
    Best
    Adam

    0. find the user id.
        a. log in as that specific user.
        b. run terminal
        c. type "echo $UID"
        d. write down the user id that will be displayed
    1. Go to the finder
    2. go to the user home folder
    3. click the box with the magnifying glass (upper right corner of the window)
    4. type .jpg
    5. a menu will pop under the magnifying glass box, select "jpg image"
    6. click the "plus" sign that's displayed to the right of the word "save"
    7. two pull down menus will appear, select "other" from the first one
    8. a new window will pull down, scroll to "owner" and select it
    9. back in the original window type the user id (a number) to the right of "owner" "equals"
    Hope this helps

  • Label Printing Using Address Book - How can I Print multiple labels of the same name?

    Label Printing Using Address Book - How can I Print multiple labels of the same name?

    I used to be able to print multiple copies of the same picture on one page using iphoto. There was a customise button when you went through to print and it was there somewhere. I can't see it anymore - maybe since an upgrade.
    It's gone. But as a work-around, duplicate your photo (⌘D) to create as many versions as you want copies and select all at once. Then use the "Custom" print layout and set the photo size you want.
    After printing, trash the added versions.

  • Problem printing labels and envelopes from Address Book

    I am very frustrated by the impossibility, when printing labels or envelopes from Address Book, of including both an individual name and a company name on the label or envelope. The Address book will only print one or the other. When sending correspondence to a person in a large company or building, the correspondence will not get to that person with only the company name or the individual name. It shocks me that in all these years I have been a Mac user, Apple has never noticed and fixed this fundamental problem. I would now like to buy an Ipod or an Ipad, but I am reluctant because I do not want to have to sync my addresses to Apple's juvenile address book. Is there any solution to this?

    !http://i46.tinypic.com/2nvn6f.gif!
    "It shocks me that in all these years I have been a Mac user, Apple has never noticed and fixed this fundamental problem.
    Is there any solution to this?"
    Upgrade to Snow Leopard!
    Or check out the Mail & Address Book - Tiger Forums & ask if there is a work-a-round.
    !http://i50.tinypic.com/izvwo1.gif!

  • Using Address Book with Word

    Does anyone know of a way to use Address Book with Word? I've looked here and other places and can't seem to find an answer. My guess is know, but I thought I'd ask anyway. Thanks!

    Forget Word - I've moved on to Pages.

  • Using address book to share mobile me gallery

    Have new ilife and do not know if i can use address book to share my mobileme gallery! Help

    Hi aksmitty99,
    Welcome to AppleWorks Discussions.
    Peggy is correct saying "...click on Style drop-down menu & choose Mailing Labels...". Yes, that is exactly where it is.
    Perhaps you see the small print dialog window. If so, look to the right of the printer name, there you will see a single twisty (upside down triangle) pointing down. Click it, you'll now have more print options available for you. There in you will see the Style drop down list; choose Mailing Labels.
    Hope this helps.
    Cordially,
    RicD

  • Using Address Book Exporter to move Address Book Contacts to Palm Desktop

    I have had strangely mixed results using "Address Book Exporter" to create files that can be imported into Palm Desktop.
    I really want to export all 1200 of my Address book cards to my new Treo 700P. Too complex?
    I set up a new group in my Address Book and placed about 400 cards in it. I then used Address Book Exporter to export all of these records using template "Palm Desktop" onto a .txt file on my hard drive.
    When I opened my Palm Desktop application and clicked on import, I first had to cause the dialogue box to show all files rather than just "readable files" in order for the exported files to be available. When I clicked on the file of 400 Address book cards that I had exported, I got the dialogue box similar to FileMaker where you have to line up the receiving fields in the Palm Desktop application with the fields in the file that Address Book Exporter created.
    When I set the "fields" drop-down menu to "addresses" and set the "Delimiters" drop-down menu to "Palm Desktop", everything just lined up automatically. No futher adjustments were needed. I just clicked OK and the 400 records were transferred to my Palm Desktop Address list - ready to further transfer to my new Treo 700P - successfully.
    But when I went through this exact same routine, instead exporting all of the cards in my Address book, when I got to the last step and set the two drop down menus - the "fields" drop-down menu to "addresses" and set the "Delimiters" drop-down menu to "Palm Desktop" - nothing happened. The fields in the exported file did not line up at all. The created export file I opened showed only one "superfield' with all the data in it (just as the earlier example had, at first) which would not change to all of the fields needed to line up with the Palm Desktop importing fields as had happened in the first example.
    Why the two different reactions to what seems to be the same routines? Does Address Book Exporter have a cap on the size of the export it can handle?
    I just don't understand it.
    Steve
    PowerBook G4 15 1.6 ghz   Mac OS X (10.4.7)   20" Apple Cinema Screen twinned, Safari 2.0.2, Mail 2.0.5, Address Book 4.0.3

    See my reply to your post in the iSync forum:
    http://discussions.apple.com/message.jspa?messageID=9618578#9618578

  • Printing envelopes from address book always has a second page

    When I print an address onto an envelope from address book, it always has a second page without any text on it even though I only want to print the address. So I have to select print 1 of 1 from my print options. Is there a way to eliminate this phantom second page?

    Without actually seeing the screens you open on your system to set this up and print, it's hard to offer any ideas for a fix, since I cannot reproduce it on my system. Can you post links to screen shots here of these different windows from your system?
    And are you running 10.5.3, or have you updated to 10.5.4 yet?
    Mulder

Maybe you are looking for

  • Need to render the edit button when table is not Empty

    Hi, I want to render the edit button , only when we have some records in the table to select.so is there a way to check the view is empty or has some records in the backing bean of my page.Please suggest me,if u have some deas which would work.. than

  • 15" Studio Display ?

    I was wondering if there is anyway to fix/save a 15" Apple Studio Display (LCD with Blue Back) there is one for sale but it has the display cord cut off.

  • Quantity tolerances for IR before GR

    Dear all, I have the following problem: -My customer is receiving MIRO invoices before doing GR. In some cases the vendors are sending double invoices with different references but to same PO. This is not acceptable and my customer want quantity tole

  • How to add MacBook Pro name in iphone5 iCloud as a family sharing device.

    How to add MacBook Pro name in iphone5 iCloud as a family sharing device. i have added my family members in my iPhone 5 with newly updated iOS 8 os, but when i am doing same procedure to add my macbook pro it's giving an error message that cannot sen

  • How to use ascii code?

    hello everyone, i have coded a program that user type text in (textArea1) and then press a button and copy this text to (textArea2) , before it copy this text i got a tokenizer that make every word copied in a single line, the question is , how i can