How do I edit a block of text in thousands of contact records?

When I imported contact data from my Treo to the iPhone via Address Book on my Mac, my custom fields got entered into the Notes field as X-Palm-Category1: <data>, X-Palm-Category2: <data>, etc. Can I do a global edit changing the text "X-Palm-Category1" to "Directions"? I have over 2000 records so I'd really like to avoid individual record edits.
Thanks.
Ken

I wasn't able to do it with the replace text routine common to AppleScript, so I used sed (a Unix utility) called from AppleScript:
tell application "Address Book"
repeat with thisPerson in people
if exists the note of thisPerson then
set thisNote to the note of thisPerson as string
set the note of thisPerson to (do shell script ("echo \"" & thisNote & "\" | sed 's/X-Palm-Category1/Directions/' "))
end if
end repeat
end tell
AppleScript is mighty slow, but much faster than manual.
I'm sure you can also use something like HexEdit to replace all "X-Palm-Category1" with "Directions" in the file "/Users/YOURUSERNAME/Library/Application\ Support/AddressBook/AddressBook.data", but binary files are always a little scary. Don't use a text editor to do it, it won't handle the weird bytes, even though, luckily, X-Palm-Category1 appears as is.

Similar Messages

  • How do I delete a block of text on my IPad. For example, when I want to forward an email

    How do I delete a block of text on my IPad. For example, when I want to forward an email & want to delete the previous sender's info.

    OK, Duh...press and hold on the text and a small menu will pop up. Then use Select, Select All, or just drag the blue handles to select the text you want.

  • Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?

    Hello, How can I edit or delete a custom label in the contacts list on iOS 7.0.3 on iPhone 4S ?
    i need it so muchhh!

    Sort of depend on what you are trying to do precisely. In Edit mode, if you tap on any label, you will be given a list of options, plus an Add Custom Label option near the bottom of the list

  • How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    How can I edit or delete a custom label in the contacts list on iOS 7 on iPhone 4S ?

    Alfre311 wrote:
    I've been trying to find a way to do this since I updated to IOS 7, and I've just found the solution/explanation, even tho is a bit heavy to carry out.
    IOS 6 creates custom labels and save them giving you the option to delete them.
    IOS 7 creates custom labels but don't save them, so there is no need to have the option to delete them.
    But here comes the problem, if you have some custom labes saved in you Iphone / Ipad with IOS 6 and you update it to IOS 7, the device will keep those labels saved, but you wont be able to delete them.
    I realized this by going to contacts on Icloud. There those labels that I had on my devices weren't there. So simply restoring your device and configuring it as a new one to later sync your Icloud Contacts, will solve the problem.
    I know this post is old, but I might just try this with iOS 8. I have outdated custom labels that annoy me, because I still seem them in the list as options. If I get desperate enough, I may try your solution.

  • How can I edit persian or arabic text in Pages?

    I'm using Pages in my laptop, my iPhone, and iPad.
    In my laptop i can't edit any Persian or Arabic texts. What should I do?

    You need to use another app, because Pages has bugs that make it unsuitable for RTL scripts.  Mellel is the best, but TextEdit, Nisus Writer, and OpenOffice should also work OK.

  • How to efficiently select a block of text in iOS

    I'm a relatively new iPad user who has brought his iPad into hospital. I'm frequently find iOS to be quirky. There are frequent times when I cannot select the specific phrase i want to capture. iOS guesses and almost always guesses way wrong, way, way too much. I'm startled that Apple has no tutorials on the iOS operating system itself. What am I missing?

    If you don't have this already, you may find it somewhat helpful.
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf
    You can also download the user guide as a free book in the iBooks Store. You will need to download the free iBooks app if you haven't already done so in order to download the book.
    Selecting text in iOS takes a little getting used to. It might help if you pinch out on the screen in order to enlarge the text and that makes it a little easier to refine the area that you are trying to select.
    I forgot about this one. This might be helpful as well.
    http://help.apple.com/ipad/7/

  • How to batch edit...adding text(company logo)

    I would like to add my company name (logo) to my images before posting them to the internet, but is there a quicker way than to open each file and add the text to each indiviual image...like even to save it as a selection that i could open or something ???...oh yeah, i have cs4
    thanks

    You can use batch comand or image processor in Bridge.  I believe in CS4 it was moved to Output.

  • How do I edit, delete and/or add a group in Contacts on my iphone?

    When I put in a new contact on my phone, it goes into a "group" called "on my iPhone". This happens even though I have the default set to iCloud. This group, "on my iPhone" is not syncing with icloud and concequently, is not syncing with my computer. How can I transfer the contacts I've created on my phone to iCloud and/or delete this group from the phone?

    You cannot create them directly on the iPhone. You can do it via iCloud:
    iCloud: Create a group and add contacts to it
    or you can look in the App Store to find a compatible app to help you create groups on your iOS device.
    Cheers,
    GB

  • Newbie Mac user:  Selecting block of text via the keyboard only?

    Hi,
    I'm switching over to a Mac from a PC and haven't been able to find an answer to this question. How do I select a block of text only by using the keyboard?
    As an example, on the PC from wherever the cursor is in a document, if I then hit Ctrl-Shift-end, the entire rest of the document from the cursor down is selected. Another similar task would be to select all of the text from the cursor to the end of the line, which on the PC can be done with Shift-end.
    Are there Mac equivalents?
    Thanks.
    Les
    MacBook Pro Mac OS X (10.4.10)
    MacBook Pro   Mac OS X (10.4.9)  

    COMMAND-SHIFT-end to select from the cursor to the end of the line. COMMAND-SHIFT-pagedown selects from cursor to end of document, use pageup to select entire document.
    Other alternatives:
    Press SHIFT and use the right arrow key to select characters. Use OPTION-SHIFT and right arrow to select words. COMMAND-right arrow key moves cursor to end of line and OPTION-right arrow moves cursor to next word.
    See also: Mac OS X Keyboard Shortcuts.
    In many instances wherever Windows uses CTRL in a shortcut the Mac uses COMMAND (Apple Key - ⌘)

  • JTextPane, how to set only a part of text editable?

    How to set only a part of text in JTextPane editable? For example I want to forbid changing text after 'enter'. JTextPane has method setEditable but this works only for whole JTextPane.
    Plz help!!!

    I'm working on some application similar to unix console. It can't be done relatively simply with the provided components (for example two textfileds), but then it will not look like console :) .
    Now some technical problems:
    Anyway, use a DocumentListener and have it ignore any changes
    in areas you deem to be protected.I have no idea how to ignore changes using DocumentListener. Could you give more information abut this?
    I found "my own way". I create MyDefaultStyledDocument which extends DefaultStyledDocument. Then I overwrite two methods: insertString and remove. Using offsets values I manage to block everything before " > ", and I protect output from editing. But I still have a problem:
    This works fine (add "> " to JTextPane text):
                String s = console.getText();
                s = s+"> ";
                console.setText(s); but this doesn't work (for example replace last word):
                    String all = parent.getText();
                    all = all.substring(0,all.length() - cut);
                    all = all+text+" ";
                    parent.setText(all);where: parent = console = JTextPane
    Why?
    And one more question. Why when I typed "enter", Document remove all text and paste it again :/

  • How do you edit text that is in a text box?

    How do you edit text that is in a text box?  I just want to change the font color of the text.  Solution in the Help files recommends selecting the text and then selecting Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    This is what the help files recommend
    (Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    When I try the above solution I don't have a  "Options" in the "Properties" toolbar.
    Why would they change a process that was so simple in previous editions to such a hidden awkward process?

    Try with a Brightness/Contrast adjustment layer and/or changing the blending mode.
    If the effect is too much for the rest of the bulb, you may be able to mask it out.
    It would help if you post a representative picture here on the forum page for us to look at.

  • How do I edit text in a fill-in form?

    How do I edit text in a fill-in form?  I am using Adobe Acrobat Pro version 10.1.8 in Mac OSX.  The document was created in Word, saved as a pdf, opened in Acrobat, and form fields added.  Now I need to change some of the text on the original form (mostly just dates).  Ideally, I wish there were a way to edit the forms overall - add or delete lines, edit text, etc.  I've done this before, but I always seem to need to go back to Word, edit the original document, and then re-create the form fields... it takes me a huge amount of time, making sure each field is formatted correctly (font, size, wrapping, text resizing, etc) so it looks ok when the user enters their data and prints it.  Please, tell me there is a better way!
    If the solution is upgrading to a higher version of Acrobat, I'm listening... but ideally I can get this batch done in the software I have, then worry about learning the newest version.

    Fonts are Licensed asset's subject to single user use. They are not intended to be exchanged, redistributed, etc.
    As part of the PDF standard they included in a document so that the document can be viewed reliably without the font be installed on the viewing station.
    To edit you must have the font installed on your computer. The ability for second parties to use the font would violate font licenses.

  • How can I edit text in a tagged PDF?

    I have created an accessible test form in Acrobat Pro X.  Now that it has all been tagged and reading order touched up, the client wants to change the text.  Is there any way to edit text at this point or do I have to create an entirely new tagged accessible form (very time consuming)?
    I have tried:
    TouchUp Reading order - when I select the block of text, nothing lights up on the TouchUp window
    Form > Edit Document Text - I can place a cursor but it won't do anything.
    Thank you for any help!

    For Tagged PDF the replace page approach ought to be avoided.
    The behavior seen when replace page is used for an existing page having annotations is not present.
    Insert of a tagged PDF into another PDF can be a problem as well. The "incoming" structure tree is always placed at the end of the existing structure tree.
    Manually remediating this can become nasty very quickly.
    Using the Touchup / Edit text tool on a 'good' tagged PDF ought to be avoided as well.
    Be well...

  • How can I edit text tabs in Photoshop...?

    how can I edit text tabs in Photoshop like in Illustrator that I can choose to view the tab rulers and edit the alignment on the tabs?
    is it possible? otherwise I can't understand why I can use the tabs at all...
    thanks!

    No, tab-formatted text is not editable in the manner you desire. As for your question - tab is just a character like any other. You are simply taking a given kind of implementation for granted, nothing more, but that must not necessarily be the case for all programs. An evil programmer just could assign the tab key to forward delete or any other fancy function just as he could make your space key draw funky symbols from a different Unicode range, if you get my meaning... so simply take it the way it is. If editable formatting is high on your wishlist:
    http://www.adobe.com/go/wish
    Mylenium

  • I need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by ste

    i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner

    Please post (a relevant section of) it right on this Forum.

Maybe you are looking for

  • How to get gopro software on mac os x 10.5.8??

    I want to install the gopro editing software to my mac to edit video.  It would never start the download to my computer.  I asked gopro for troubleshooting tips and was told my operation system is old.  How can I update my system in order to be able

  • PC Cards, Laptop and Sol 9/x86

    Hello, I am looking for information on using a PCMCIA Card on a Compaq Laptop (Presario 1247) running Solaris 8 or 9. My current setup is using Solaris 8 on that laptop with a 3COM 3C589D. In order for it to work, I bought some drivers from the folks

  • Looking for some plug-ins for dreamweaver 8

    As I am creating an e-commerce website I will need to a lot of coding. Does anybody know of any good websites besides Adobe where I can download some free addtional behaviors for Dreamweaver 8.

  • Petstore1.3 "setup deploy" failure

    I'm trying to install Petstore1.3 on my Windows98 machine with jdk1.3.1 and j2sdkee1.3. However the command "setup deploy" failed with the error message: [java] Sender object Deploytool (Main): Could not connect to localhost

  • Win 7 upgrade

    On my ideapad s10-3t I am using windows 7 starter at the moment but I would like to upgrade because of the better tablet support. I am in posession of a windows 7 32 bit retail version. What exactly do I have to do during the upgrade if I 1. don't wa