Multiple number change - old to new - CC version

Hi all,
Can anyone help me out with the following:
I got a document which have got around 200 article numbers which need be changed from the old number to a new number, desciption, image etc will not change. I got an Excel list which got the old code in A1 and the new code in B1.
Instead of changing all the codes by hand one by one, i would like to know if it is possible as a mass change.
Thanks i advanced
Best regards,
Phillip

Hi,
So your script could look like:
var myFilePath = "~/Desktop/oldnew.txt",
myDoc = app.activeDocument,
mySource = myDoc.textFrames.add(),
mySource.place(File(myFilePath) );
var myStory = mySource.parentStory,
mTextArr = [],
paras = myStory.paragraphs.everyItem().getElements(),
myStyle = myDoc.paragraphStyles.item("articlenumber"),
currCont, k;
for (k = 0; k<paras.length; k++) {
          currCont = paras[k].contents;
          if (currCont !="" && currCont.indexOf("\t") > 0)
          mTextArr.push(currCont.split("\t"));
for (k = 0; k < mTextArr.length; k ++)
          myReplace(myStyle, mTextArr[k][0], mTextArr[k][1]);
mySource.remove();
app.findTextPreferences = app.changeTextPreferences = null;
function myReplace(style, find, change) {
          app.findTextPreferences = app.changeTextPreferences = null;
          app.findChangeTextOptions.wholeWord = true;
          with (app.findTextPreferences) {
                    appliedParagraphStyle = style;
                    findWhat = find;
          app.changeTextPreferences.changeTo = change;
          myDoc.changeText();
Assumings:
- oldnew.txt path is Desktop or to modify;
- txt line is oldnumber - tab - newnumber - enter
- there is a para style "articlenumber" defined and applied to each old number to be changed
Jarek

Similar Messages

  • How to change icons in new iPhone version?

    Hello everybody
    I do not like these "japanese cartoons" like new icons
    - do not object to all those who will surely "love" them -
    simply : how can I change mine?
    (once it was simply in Apple softwares...)
    best
    Orietta

    orietta.c wrote:
    how can I change mine?
    You don't, some learn to like them.

  • I changed my number along with my sim card and imessage will not recognize my new number. how can i have imessage forget my old number and use my new number?

    i changed my number along with my sim card and imessage will not recognize my new number. how can i have imessage forget my old number and use my new number?
    i have tried signing out of imessage and signing back in. (when i do that and am asked to select my email adress, i see my new number but it is greyed out and i cant select it)

    But under send and receive, my old number is still displayed while my new number isn't.

  • I have an education version of cs 6 creative suite, I have the box and used in once on my old laptop I am now trying to find serial number to reuse on new laptop but only have product code and product number

    I have an education version of cs 6 creative suite, I have the box and used in once on my old laptop I am now trying to find serial number to reuse on new laptop but only have product code and product number

    Hi Sophie,
    Normally you can find your serial registered to your AdobeId. To find it please login to the Adobe website and check if you did register it to your account.
    Serial number, Redemption, and Product codes | Student & Teacher Editions
    In general you will go true a educational verification afterwards you get the serial. So its in your email or account. If you still have issues get in contact with the chat team to get help.
    Good luck!

  • IPhoto won't open my library, it says I made changes with a newer version?

    I D/L'ed iPhoto library manager so that I could split my library because my startup disk is overfilling everytime I try to import photos. I tried using iPhoto lib manager to split my library into two. I created a new library. I also created a new album I dumped my pictures from '03-'07 into. After I did this IpHOTO started saying my original library was made by a newer version of iPhoto and couldn't be opened. I opened the library package to make sure I didn't lose 8000 pictures, luckily all of my pictures were still in the library and organized like usual (folders by year, month, and day). I was able to re-import all of my pictures but as you can imagine the dates were messed up, multiple events with only one picture yet there are 10 separate events for the same day and it also imported a bunch of low res thumbnails (AARRRGH!).
    The library manager still lets me choose to open my old library in iPhoto but when IpHOTO launches it gives me the error of being made by a newer version. I even bought iLife '09 *$$* to upgrade to the newest version of iPhoto available. I can still see my old albums in the library manager when my old library is selected but when I try to drag them into my new library I get this error message.
    "The library "iPhoto Library" needs to be upgraded to work with iPhoto version 8.0.3 before you can copy photos from it. Please open the library and let iPhoto upgrade it, then try the copy again."
    However I can't open this library with the newest version of iPhoto because when I do it says ..
    "You can’t open your current photo library using this version of iPhoto.
    You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."!?
    What the? I'm using the newest version of iPhoto!! It couldn't have been changed by a newer version of iPhoto because there ISN'T ONE!
    This is soooo frustrating. I've dealt with corrupt iTunes folders all mixed up, with unknown errors occurring when I've tried to update to 10.5.6 and I've figured them both out but this is my bane at the current time!
    Any help would be greatly appreciated to keep my photos and vids organized. thanks much,
    Tim

    Duplicate response to your duplicate post
    Unless you opened the Library with a later version, then this is sometimes a symptom of database corruption.
    And one cause of library corruption is operating without adequate free disk space
    You must have a minimum of 10GB of free disk space to safely operate your Mac. Since you are having notices of inadequate space you almost certainly have much less than that - and the problem is exactly that - nothing to do with any program including iPhoto or IPLM
    You must free up space now before you can do anything to recover your photos - adding an external drive is the quickest and easiest
    LN
    LN

  • I have been updating my PSE since 10. Recently I purchased PSE13 as I didn't see an update for my 12. I was changing to a new laptop as my old laptop had been patched and worked and was showing signs of giving out. It was a Window's 7OS. My new one is a W

    I have been updating my PSE since 10. Recently I purchased PSE13 as I didn't see an update for my 12. I was changing to a new laptop as my old laptop had been patched and worked and was showing signs of giving out. It was a Window's 7OS. My new one is a Windows 8 OS so I bought the 13 and downloaded it on the new laptop. Our desktop had died so I downloaded the 13 on the new  desk computer also. Not thinking I downloaded 13 on my old laptop as I hope to get it patched up enough to be a backup for my photography. When I tried to activate it I realized that I had downloaded it too often. I didn't know you could only use it on two computers. Learn something new every day.. Any way I removed it and now my PSE 12 does not seem to be working. Now it could be something that I did or something that is an issue with the laptop. this laptop has all the previous editions on board as I always tried to update, except for the year I got a really good deal on Black Friday. I also notice that the new laptop has a copy of PSE 12 in the program list. To my knowledge I have never deactivated any of my PSE's except the extra 13 downloaded. Bottom line, do I need to go in and deactivate previous PSE versions and removed them from my computer? I could certainly use the space and secondly, can I deactivate the PSE 12 and then go back and reacitivate it and install it again on the old laptop or the desktop, whichever I deside would be the most appropriate place for the newer program. For the PSE 12 since it is an updater for 11, does the 11   still need to be on the laptop? thanks for anyone who can understand what I am trying to say and can advise me as to my next move. Thank you very much.

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • I own CS6. I just built a new computer with Win-7. How do I change to the 64 bit version and install on the new computer?

    I own CS6. I just built a new computer with Win-7. How do I change to the 64 bit version and install on the new computer?
    Lance

    download the installation file(s) and activate with your serial number,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.<

  • Lync User Phone Number Changed in AD - Still Showing Old (Normalized) Number Days Later in Lync Client Contact Detail

    Environment:  Lync 2013 backend; Lync 2010 and Lync 2013 clients.  Enterprise Voice not implemented.  November 2013 CU Applied on Server.
    Issue:  Lync user (User A) phone number changed in AD but still showing old number for others days later.
    Believed Cause:  User A has not logged into Lync since change to republish new phone number?
    So after reading this http://masteringlync.com/ I am beginning to think that something I perceived as an issue may actually be by design?
    Action:
    User A work phone number changed in AD.  User A has only one phone entry in AD.  Normalization rule in place to basically leave number unchanged (working)
    Result: 
    New phone number propogated fine to Exchange/Outlook fine.  Old number displaying only in Lync client when viewing User A contact card detail
    Lync 2010 Client displays only old number when looking at Client A contact detail (this client only presents phone numbers if they are actually normalized)
    Lync 2013 Client displays two work numbers. 
             One that we identify as a "display number" just as entered in AD - this shows correctly as the new number.  Another that we identify as the "normalized number" which is still the old
    number (same as 2010 Client)
    Same results whether contact is saved in Lync Client or not and is not related to Outlook contacts - in fact one test was with a Lync account that is not Mail Enabled.
    I did a dbanalyze to view the SQL database detail for User A and see that Category 'userInformation' has the old phone number and the time stamp on it seems to coincide with a Lync Cllient database change (user login or refresh on that end) so this seems
    to futher confirm my findings thus my reaching the point of conceding it might be out of my control.
    My Question I guess is ....
    Have others discovered this?  Is this a bug or do normalized phone numbers actually requre a client login to accept/republish the number correctly to others even though the information is updated in AD?  User detail and how it propogates seems to
    be the biggest mystery and it gets harder and harder to explain to users why changes aren't displaying accuralely.

    Thanks Richard... your blog definitely hit home with what I was seeing but guess I just didn't want to accept that as the end of the road on this.  I'm still in a little misbelief that client interaction is necessary to update a backend change.
    This process really makes phone numbers in Lync an unreliable source given a user will never know if it is it up to date.  And the problem with Lync 2013 client is it shows both numbers in the client ... the address book one with the
    updated AD numbers and the one the normalized AD one that the user has to login to republish.  I now more fully understand the process but trying to explain that to users when they see different work numbers .. ugh. 
    Oh well, guess the important part is to understand the process so thanks again.

  • My phone has been changed under warranty by the apple store in germany. ı need a change document to register the phone in my country again. ımeı numbers of old and new must be in the document.you can send an mail in pdf format as soon as possible please.

    my phone has been changed under warranty by the apple store in germany.
    ı need a change document to register the phone in my country again.
    ımeı numbers of old and new must be in the document.you can send an mail in pdf format
    as soon as possible please.
    your's respectfully.
    new phone serial no:DQ******TC0
    old phone serial no:DN*******T9Y
    Product:
    iPhone 4S
    Serial Number:
    DN*******T9Y
    Service Requested:
    December 3, 2012
    Status:
    Repair Complete
    <Edited by Host>

    No we cannot send it to you because we are users just like you and Apple does not monitor these forums.
    But you can find the IMEI numbers yourself. Read the ENTIRE article:
    http://support.apple.com/kb/HT4061

  • Home number changed without my knowledge. Want my old number back.

    I have been in touch with Verizon's phone representatives ever since moving into my new apartment. Most recently, my home number changed after I cancelled digital voice service and got Verizon to put me back on my old service. The new number that Verizon has me on is not even recognized as a Verizon number! I talked to Britney the other day and was told that she would call me after getting permission to change our number back to what it was before. This current number sems like the temporary number that Joanie gave me during my FIOS installation. When I called Verizon again this morning to check the status of my inquiry I was told that they can't change my number back because it's unauthorized and that the number is not even Verizon's. My home number has been hijacked and I AM HELPLESS. Everyone says one thing and I am stuck with a number I didn't even ask for. Please help me get my old number back. This is not right.

    Good afternoon Nahid,
    Can you send us this information in a private message so we can look further in to this please?
    ~Jess

  • If you lose your phone and you get a replacement . does you imei number change? or do they keep it the same as your old one?

    if you lose your phone and you get a replacement . does you imei number change? or do they keep it the same as your old one?

    Hi
    Every handset has a unique series of identifiers, one of which is the IMEI number, so if you exchanged the handset (for example if it was not working & you were still under warranty) your new handset would have a new IMEI number.
    What Apple do though is if you formally exchange your handset (again, under warranty etc) then they record the change on their system, but also give you a sticker which is meant to attach to the original box. That way, if you come to sell the handset, you have a proper record of why the IMEI number on the handset is different from the IMEI number on the box.

  • Phone number changed, but old number still shows in iTunes and in contacts within Phone app

    My phone number changed, but when my phone is plugged into iTunes, it is still showing my old phone number in the iPhone information box.  Also, when you are in contacts from within the Phone app. and you you pull down the list of contacts so it reveals the space above the search field, it says "My Number: (old number)" instead of "My Number: (new number)".  I have synced my phone with iTunes since the change and my new number has been updated in my name record in the Contacts app. but the old number is still persisting in the aforementioned places.  How do I get iTunes an the space above the search field in the contacts section of the Phone app to display my new number?

    Tank you from me too.  I have been trying to sort this problem out for a few weeks and getting somewhat annoyed! It's so easy when you know! Thanks again
    Animalmaple

  • HT3231 I have a new iMac OS X version 10.8.5 and a 12 year old iMac OS X version 10.4.11.

    I have a new iMac OS X version 10.8.5 and a 12 year old iMac OS X version 10.4.11.
    I wish to transfer Quicken and iPhoto from the old to the new.
    I tried using wired Migration Assistant and received error message.
    So following directions for alternate methods I used a flash drive.  It seemed to work but I received error message to the effect that the PowerPC G4 is not compatible with the new system with 2.7 GHz Intel Core.
    I discissed by phone with Apple service rep who indicated that it is true that this transfer is not possible.
    But this HT 3231 article seems to say that it is possible.  Any suggestions?

    Properly configure the flash drive:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to APM then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    Copy the files from the old machine to the flash drive. Then plug the flash drive into the new computer. Copy the files from the flash drive.
    You need to understand that the files are no likely to be compatible which means you may not be able to use them. But the above process will transfer the files properly.

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    You're not addressing Apple here. This is a user-to-user technical support forum. If you want to contact Apple, use the Contact Us link at the bottom right of every page for information on how to do so.
    Best of luck.

Maybe you are looking for

  • How to create one more server node for SAP J2EE server?

    Hi, Can any one please suggest how to create one more server node for SAP J2EE server? I am using WAS700. Thanks and Regards, Smriti.

  • Problems synching iPhone 3Gs with Address Book and Calender

    I have an iPhone 3Gs and have begun to notice that information is not being synched between Calender and the phone and Address Book and the phone. I now also have duplicate contacts for all contacts that were in my orginal iPhone before I upgraded. I

  • Opening a Word document in a form layout html region

    Hi all, In an Interactive Report I use select '<img src="#WORKSPACE_IMAGES#'||package.f_get_document_type ( doc.id )||'" title="Document" width=20 height=20>' ) document from table to show an icon that eventually downloads (and shows) a word document

  • Belgian VAT

    Hi everyone,   I am looking into configuring Belgian VAT. There are some standard tax codes in ftxp for BE but our requirement is to have a few more different tax codes with same tax rates but different VAT declaration. Has anyone worked on Belgian V

  • Bad interface error message

    I've written a vi (& built an executable) to run either continuously grab or snap images from a PCI 1424. The machine with the card in isn't the development machine an dis running imaq 2.1 with a very simple imaq configuration utility. This can be us