Using GREP for Address Formatting Varying Addresses

I create pre-addressed wedding envelopes for my clients. They provide me with a list of their addresses in a word document, and I lay them out in InDesign with each page being one envelope. (So I can export as a pdf and print all 100 or so envelopes in one swipe.)
The problem is, I'm getting more and more requests for more dynamic addresses. For example, lets say they want something like this:
Mr. & Mrs. Smith
1 3 4 5   M A I N   S T R E E T
NEW YORK, NEW YORK
87996
Solution 1: Use Line Styles
For example:
Line 1: Style A
Line 2: S T Y L E  B
Line 3: STYLE C
Line 4: Style D
This would typically work, except sometimes the addresses have 4 lines instead of 3, making some addresses look like this:
Mr. & Mrs. Smith
1 3 4 5   M A I N   S T R E E T
APARTMENT - 7B
New York, New York
87996*
*hint: It thinks this is line 1 again.
Instead of the desired result:
Mr. & Mrs. Smith
1 3 4 5   M A I N   S T R E E T
A P A R T M E N T  - 7 B
NEW YORK, NEW YORK
87996
Also, it would require replacing every return with a forced line break (attainable, but still.)
Solution 2: Use Nesting Styles
This *might* work, but I can't tell it to stop the nesting style with a line break/return, only with specific characters (which I would have to insert line by line and negate the whole point.
Solution 3: Use GREP
This is a foreign language from another planet and I CANNOT figure it out. I can set character styles no problem, but telling ID in GREP when to apply them is a mystery to me. HELP!
BobLevine EugeneTyson @P_Spier << you guys are my heroes!  InDesign

I don't think that's what he means. The Yahoo push mail uses Yahoo's IMAP which only works if you set up your account on iPhone using the preset Yahoo account setup. This setup does not allow for changing the FROM address, so the email appears to be from the underlying yahoo.com account. If you pay for Yahoo Plus you can use POP and change the FROM address, but then you don't get the benefit of the push email.
I'd love to hear a solution, but after calling Apple and Yahoo and combing the support boards of both, I don't think its possible at this time.

Similar Messages

  • Mass-change address format in address book

    Hi Guys,
    I've recently changed from pc to mac (yay) and have imported all my contacts into address book.
    I have several hundred contacts that have mailing address in the US, and several hundred that have mailing addresses in the Netherlands and some in other parts of the world.
    I'd like to change the address formats to the appropriate ones, but so far have only been figure out how to do that one at a time, or all together.
    I can use smart groups to group the addresses I want to change together, but after that I'm stuck.
    Is there a way to change the address format from selected cards? or will I have to do this one at a time?
    Thanks for your help.
    mac mini Mac OS X (10.4.8)
    mac mini Mac OS X (10.4.8)

    Here is an Applescript you can run that will do what you want:
    property CountryCode : {missing value:"us", USA:"us", Netherlands:"nl", UK:"uk"}
    tell application "Address Book"
    repeat with aPerson in people
    set theAddresses to addresses of aPerson
    if theAddresses is not {} then
    repeat with anAddress in theAddresses
    set theCountry to country of anAddress
    set the country code of anAddress to my getCC(theCountry)
    end repeat
    end if
    end repeat
    end tell
    on getCC(aCountry)
    set s to "on run {CountryCode}" & return
    set s to s & "get " & aCountry & " of CountryCode" & return
    set s to s & "end"
    try
    run script s with parameters {CountryCode}
    on error
    return text returned of (display dialog aCountry & " not found. Enter a country code:" default answer "us" buttons {"Ok"})
    end try
    end getCC
    In the property statement, change the "us" for missing value to your default country code. Add any other countries you have to the CountryCode list. The first part, before the colon, is the Name of the country as found in your address book. The second part is the ISO country code (two characters). I found a list of ISO country codes here. That list was upper case, but the address book uses lower. If you have variants of the same country name, you can just add them all to the list.
    Note: the name of the country cannot be more than one word--I didn't want to work out another way of getting codes. However, if the script runs across a country name that is not in the list, it will ask you to enter the correct value. You can change the "us" in the getCC handler to the country code of multi-name countries in your address book to make it the default answer.
    Need help with Applescript? Just copy the code into a new Script Editor document and hit the Run (green right arrow) button. It will open the Address Book and start looking through your contacts, finding ones with addresses, and setting the country code to what you say it should be in the property CountryCode list.
    If it fails with any other errors, check the Event Log History window which may give you a clue as to what was wrong with the address it failed on. You may be able to fix the address so it continues. Otherwise, post back with the error and I may be able to figure it out.

  • Do I need to use GREP for this?

    I have set up my TOC for my book just fine. In my Contents, the headings from each chapter are pulled in and used as the entries for the TOC, then followed by its page number.
    I would like to add a word (the word "Chapter") before each numbered contents entry. Would I use GREP styles for this?
    I'm using CS5.
    Thank you!

    You can create an autonumbered list format that includes text like "Chapter " along with numbers, for the TOC paragraph style, so no scripting needed. Search Google for terms like "InDesign numbered list format text," without quotes for details.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    cc2545 wrote:
    I have set up my TOC for my book just fine. In my Contents, the headings from each chapter are pulled in and used as the entries for the TOC, then followed by its page number.
    I would like to add a word (the word "Chapter") before each numbered contents entry. Would I use GREP styles for this?
    I'm using CS5.
    Thank you!

  • I want to use the same name for my icloud email address as my .mac name

    My name for all of my yahoo, gmail, .mac email accounts are al the same.  I'd like to use the same name for my icloud account.  It tells me that the name is not available but I'm pretty sure no one else would have chosen it.  Is the fact that I've used it for my .mac email address somehow blocking it's availability?  Please help.  Thanks.

    There is some confusion in my mind about your post.  Let me describe what I think you mean, let us know if I misunderstood...
    I'm assuming you already have an Apple ID that you used to define an iCloud account (or an older dot mac account), and the iCloud account has "[email protected]" as its email address.  But the Apple ID for this account is not the same as the email address I just listed, perhaps your apple ID is something like "xyz@???.com" and what you want is to use the ID, "mySpecialName@???.com".   [the "???" could be mac, icloud, or something else]
    If I've got it right so far, then  when creating a **new** Apple ID, you must now use @icloud.com.  If you are trying to define "[email protected]", then that is the problem - "mySpecialName" is already associated with @icloud.com, because your current @mac.com also has [email protected] as an alias, so that name is no longer available.
    Also, you cannot change the current ID from "xyz" to "mySpecialName" on an existing account.  So either way, you can't get the ID that you desire.
    Let us know if this is not what you mean.

  • Customize the address formats for internetsales application of B2C

    Hi Experts,
    Please explain me how to create new address formats for Internet sales application of type B2C.as of now currently we have only 2 address formats.i,e 1) US Address 2) EU address.
    I would like to create more address formats..
    Please suggest me
    Thanks and regards,
    Kiran

    Hi,
    I doubt you can create more address format types. There is no T-Code/Table etc to create a new one.
    Please follow this: SPRO >CRM > Web channel > E-Commerce > Define Address Format
    SAP Help says
    In this Customizing activity, you define how addresses are displayed in Internet Sales.
    Two address formats are currently supported. These are the European standard address, and the USA address. The address format is defined using the address layout key for the country of the sales organization, which is in turn determined using the shop variant.
    In this activity, you can maintain the assignment of address layout key to address format.
    Sateesh Chandra.

  • Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.

    Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can;t see a symbol for address book.

    Where are addresses kept on MAIL?  I don;t like the new format at all. Frances
    Begin forwarded message:
    From: Frances Topping <[email protected]>
    Subject: Re: - Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.
    Date: August 25, 2014 at 9:46:01 AM EDT
    To: discussions-replies <[email protected]>
    Old Entourage is POP and new Mavericks MAIL  is IMAP I believe. I don;t know how to export in the forms you mention. Frances

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • Regular expression for email address formats

    I have the following regulare expression which I am using to validate email address format.
    This allows addresses of the form
    [email protected]
    ^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+$
    And of course this allows addresses of the form
    [email protected]
    ^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+$
    What I'm looking for is something which will allow both.

    This way
    '^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9.]+$' would allow both. :-)
    with test_data as
    ( select '[email protected]' as val from dual union all
      select '[email protected]'   as val from dual union all
      select 'no#good'              as val from dual
    select
      val ,
      case
        when regexp_like( val, '^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9.]+$' ) then 'Y'
        else 'N'
        end
        as good
    from test_data ;
    VAL                  G
    [email protected] Y
    [email protected]   Y
    no#good              NBut then again, it would also allow "[email protected]" and "[email protected]" too. So I suspect you don't really want something that simply allows your two cases to pass validation. If you want to allow only those two cases then try something like this.
    with test_data as
    ( select '[email protected]'     as val from dual union all
      select '[email protected]'       as val from dual union all
      select '[email protected]' as val from dual union all
      select '[email protected]'      as val from dual union all
      select 'no#good'                  as val from dual
    select
      val ,
      case
        when
          regexp_like
          ( val
          , '^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)?$'
          ) then 'Y'
        else 'N'
        end
        as good
    from test_data ;
    VAL                      G
    [email protected]     Y
    [email protected]       Y
    [email protected] N
    [email protected]      N
    no#good                  N--
    Joe Fuda
    SQL Snippets
    Message was edited by SnippetyJoe - added clarification.

  • Which address format to choose for Chinese addresses?

    Hi;
    In Addressbook, I'm trying to enter a Chinese address. I'm standing in Beijing, can't get more Chinese than this.
    A Chinese address looks like this:
    中国北京市东城区东中街20号3号楼1311 100022
    Chinese addresses go from country (中国) first to apartment number (1311) in a single stream, with the postal code last for sorting.
    This has nothing to do with the Address format when I choose "China" under "Change Address Format". Is there another "China" that I should select?
    Any help would be appreciated -- I'd like to preserve as much of the chinese characters and formatting as I can.
    Additionally, if I can manually create a format that goes:
    Country-Province-City-District-address postal
    ... then I'd at least preserve the chinese formatting.
    Thanks...
    Allan
    Powerbook G4   Mac OS X (10.4.8)   Addressbook 4.0.4 (485.1)

    FAT is FAT32 is MSDOS
    exFAT is FATex
    Disk Utility select second drive media
    Hit the partition tap, select big box click 2 partitions,
    select 1 partition format OS X extended, select the other partition format MSDOS click Apply.
    https://discussions.apple.com/message/16276201#16276201
    Because you have a unusual setup, I don't know exactly how Bootcamp is going to handle it, you got to download the drivers and read the PDF.
    However when you insert the Windows 7 DVD to install, you first need to change the MSDOS/FAT32 format to NTFS using the Windows disk, Disk Utility or Bootcamp won't do it.
    https://www.apple.com/support/bootcamp/

  • How can I change my primary email address to the one that I use for my rescue email address?

    I no longer use the email address associated with my apple ID account and the rescue email address I used is now my primary email address for everything, since it its not allowing me to just simply change my email address since its my rescue email address i want it changing to, can it be done and how?! :S Thank you!

    You will need to remove it as your rescue email : log into your account via the 'manage your apple id' button on http://appleid.apple.com, select the 'Password And Security' section on your account's screen, and answer the two security questions that show - you should then be taken to another screen where you can change or remove your rescue email address.
    Then try logging out of your account and then log back in and see if you can then use it as your primary email address.

  • When I try to purchase an app using my iphone it asks me for a password for the wrong email address. How do I reset my iphone to show the correct email address/apple ID

    when I try to purchase an app using my iphone it asks me for a password for the wrong email address. How do I reset my iphone to show the correct email address/apple ID

    Thanks for your reply. Having read through relevant topics it suggests that if I sync my iphone with the correct account on my pc it should use that one thereafter. i will try both.

  • I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. What do I do?

    I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. So when I want to download apps I have to sign in with apple id but I can't so I made a new one, However I can't seem to be able to delete the old one. What do I do?

    You can't merge Apple IDs.  You also can't cancel (delete) and existing ID, you can only choose to stop using it.
    If your old ID was compromised and you can no longer access it, you'll have to contact Apple for assistance.  Go to https://expresslane.apple.com ; click 'See all products and services' at the bottom of the page. In the next page click 'More Products and Services, then 'Apple ID'. In the next page select 'Other Apple ID Topics' then then 'Apple ID account Security’.

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • HT5622 In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    if it's a message coming from your yahoo account, it means that your account has been compromised, not your phone itself. i would suggest changing the password for your email account

  • Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straig

    Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straight to my phone instead of my MacBook Pro. Help!!

    Any error message?

Maybe you are looking for

  • A leopard wants to share with XP

    I have a shared printer on my new Leopard iMac and i want to connect to it from my XP Pro Machine. In My Network Places I can see my iMac in the workgroup and after some login hassles i can see the printer. I have tried to install it using the Add a

  • Problem with JAI instruction

    the line code is input = JAI.create("fileload",file); when i compile my project there is no problem but when i run it i have this error Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0      at algorithms.fuzzycmeans.FuzzyCMeansI

  • Transfering from old HDD to new HDD

    I have a MacBook with the standard 80GB HDD and I purchased a new 160GB HDD. My question is, how do transfer everything I have from my 80GB to my new 160GB including prefs, settings, and files. I didn't want to reinstall all my software and reset all

  • Tablespace PSAPSR3 is already in backup status

    Hi! I have planed an ALL-ONLINE Backup from DB13. What does it mean and how can I proceed to backuo these tablespaces? Here is the error I am getting: BR0328E Database file E:\ORACLE\DEV\SAPDATA1\SR3_1\SR3.DATA1 of tablespace PSAPSR3 is already in ba

  • I use Photoship CC and have the latest update.  My Filter Menu does not show the Blur Gallery.

    Can anyone tell me why I don't see the Blur Gallery listed on my Filter menu?