Script to change numbers all at once...

Hi,
I work with technical drawings...90% of my time is changing the numbers on the drawing.   I take the PDF that was created in UG/NX and then open that in Illustrator to make formatting changes, and number changes. 
What I would love, is to have a script that will let me take an excel file, text file (something)  the file would list the current numbers and list the new numbers, and have the illustrator script switch all the numbers at once.
I know there is the find and replace but that takes too long, and I have to worry about if I'm changing 2 to 5, that it's not going to change 20 to 50. Even with the script that would be a concern.
Is what I want even doable with a script,  and do you have any suggestions on how to get started?  I have someone who can help me with the code, just want to see if it's even possible.
Sample list would look something like,
Old number, New Number
1, 5
2, 6
3, 7
4, 8
5, 9
6, 10
7, 11
8, 12
9, 13
10,
11, 14
12, 15
13, 16
15,
16, 17
Numbers can go into the 400's
TIA
Karleen

thanks for answering me.
One number is never replaced by two different numbers. 
How would I get started working on the code?  VB, Java?   Any tips or suggestions would be great.  
Thanks!

Similar Messages

  • Script for converting numbers?

    Hi guys,
    Do you know how to make a script to change numbers between parenthesis in superscript without the parenthesis? The author send me the texts this way I have made a Character style of the Superscript but still and it a bit time consumming changing them one by one all the time.
    I have an image which explain it better.
    http://www.pixentral.com/show.php?picture=1vNdYe7ciMEbwqbUWAIrmPY0Gh4a8
    Thanks for any help or info. I would really appreciate it
    Cheers,
    S

    Use GREP Search and replace (Find/Change dialog):
    Have fun

  • Powershell Script to change the default user Account picture for all users in windows 7 and 8

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev
    The default user account picture is stored here.
    C:\programdata\Microsoft\User Account Pictures\user.bmp
    It should just be a matter have copying the picture you want to that location and over writing what is there.
    or....
    Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users
    You can also configure this by a registry setting;
     [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
      UseDefaultTile = 1
    The picture that you configure, will not be loaded until the user account will actually be created on the pc. Meaning the first time a >new< user will log on to a pc, they will have no picture shown at all using their login screen (this is default
    behavior). Same will occur if you enable the policy don't display last user name. However, once they log in the picture will be shown in the start menu, and if they lock their pc the image will also be shown

  • Script to change the priorty of all rules and monitors in a Management Pack

    Script to change the priority and severity  of all rules and monitors in a Management Pack in an override MP .We are deploying an MP in production and don't want the helpdesk to take any action on any alerts, so want to set all of them as informational.Once
    they are reviewed then we will delete that override mp
    Can some one help me with a script
     

    Is this MP sealed?  Doesn't really matter..  Unseal the MP if it is sealed.  Now you have access to the RAW XML.  Alert severity and priority have xml tags.  You should be able to do a search and replace and change all the various
    levels (0-3 or whatever they are) to the levels and priority you want.
    Then you can seal the mp with your own key, or just roll it into prod as an unsealed MP.
    This seems, to me, like the quickest and easiest way to make all of these changes at once.  To bulk override everything, not even sure it's still around or even works, there was a tool called Override Explorer, and you could select multiple monitors/events
    and create overrides.  I can't remember very much about the tool because we didn't use it much, but I think it did this with live data, meaning it connected to your management server, and you made the changes in real time.  
    Of course you wouldn't want to do this in production, so do it in a lab, then export the override mp and put it in prod.
    There is probably some snazzy way to do this with PoSh, but I am not aware of any atm.
    Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you.

  • Is there a way to change the duration of a group of selected clips all at once?

    Hi all,
    I'm working with good old Premiere 6 on Windows 7.
    Is there a way to change the duration of a group of selected clips all at once?  If I have a large group of clips in my timeline that are all the same duration, once I've selected them all in a group, can I somehow change the frame number duration of all the clips at the same time?
    I've found other things that can be done to a group of clips at the same time, but I can't find a way to change the duration of a group of selected clips.
    Thanks,
    digi

    Thanks Jim and Bill,
    In my efforts to work around the problems with the distortion and horizontal interlace lines that come when using the Motion Settings, I'm doing stop frame animation with hundreds and hundreds of layers in PSDs in multiple files placed in hundreds of one, four and six frame sections in Premiere, so if I find that I need to change the number of frames per clip in hundreds of consecutive clips (not actual duration of speed changes), then I need to pull out the right side of hundreds of frames after first moving them apart enough to allow for changing them if I'm making them longer.
    These animations are different from the rotating reel animations in that they are for laterally moving subjects that are long streams of moving graphics and photos.
    I read about "clip nesting", but I think that only applies to clips or groups of clips that are the same, whereas my clips are each from different imported layers times 125 or so, consecutively placed one after another to create the laterally moving stop frame animation.
    Now I've tried johnbmx4christ's alternate method of creating rotations that was just posted on the other thread about the rotation distortion, but that method results in the same oblong distortion and messed up looking horizontal interlace lines.
    What a can of worms.
    Thanks,
    digi

  • Powershell script to change the a column value of all documents in a site.

    Hi,
    I need a powershell script to change the value of a column (a site column which has been added to all document libraries) in all documents in a site,
    For example: 
    -column 1 is a site column added to all libraries
    the value of column 1 of all documents under this site: http://intranet.doman/ex1 should be equal to V1
    the value of column 1 of all documents under this site: http://intranet.doman/ex2 should be equal to V2
    So, if I can write a powershell script to change the value of all documents in a site, I can modify it for different site that I have and run it for each of them individually,

    cls
    # Is dev version?
    $dev = $false
    # Configuration
    $termStore = "Managed Metadata Service"
    $group = "G1"
    $subjectMatterTermSetName = "Subject Matter"
    # Check if SharePoint Snapin is loaded
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
         Add-PSSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") | Out-Null
    function GetTermStore($site, $termStore, $group, $termSet) {    
        $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
        $termStore = $session.TermStores[$termStore]
        $group = $termStore.Groups[$group]
        $termSet = $group.TermSets[$termSet]
        return $termSet
    if($dev) {
        Write-Host "Running DEV version..."
        $webUrl = "http://Site1"   
        $libraryName = "L1"
        $subjectMatter = "C1"
    } else {
        $webUrl = Read-Host "Enter Site URL" 
        $libraryName = Read-Host "Enter Document Library name"
    $subjectMatter = Read-Host "Enter Subject Matter"
    try {
        $web = Get-SPWeb $webUrl
        $site = $web.Site
        $library = $web.Lists[$libraryName]
        $items = $library.GetItems()
        $subjectMatterTermSet = GetTermStore $site $termStore $group $subjectMatterTermSetName
        $subjectMatterTerm = $subjectMatterTermSet.GetTerms($subjectMatter,$true) | select -First 1
        foreach($item in $items) {
            if([string]::IsNullOrEmpty($item["Subject Matter"])) {     
                #Write-Host "Filename: $filename / Keywords: $keywords / Subject Matter: $subjectMatter / Document Type: $documentType"        
                Write-Host "Updating $($item["ows_FileLeafRef"])..."           
                # Set Subject Matter column
                $subjectMatterField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$item.Fields["Subject Matter"]
                $subjectMatterField.SetFieldValue($item,$subjectMatterTerm)
                # Update Item
                $item.SystemUpdate()
    catch
        $ErrorMessage = $_.Exception.Message
        Write-Host "Something went wrong. Error: $ErrorMessage" -ForegroundColor Red

  • [JS, CS3] a script to change language in all paragraph styles

    Hi,
    I made a script to change the language in all paragraph styles to "French", but when I run it I get the error: "Invalid request on root style". Could you please tell me what am I missing?
    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i++)
    myStyle = myStyles[i];
    myStyle.appliedLanguage = "French";

    Thanks a lot!
    The problem is solved
    Ola

  • Need a script to change attribute of all images from not printable to printable

    Hi everyone,
    I have a couple of books with contain numerous images. These images are al set to not printable. Now the publisher wants to print books himself so images should be printable. Anyone have a script to automate this?
    thanx in advance

    Hi,
    Use this JS codes.  It will change the all non printable images into printable.
    var allGRs = app.activeDocument.allGraphics;
    var a = allGRs.length;
    while (a--) {
        if (allGRs[a].itemLayer.printable == false) {
                allGRs[a].itemLayer.printable = true;
    I hope this helps to you.

  • In iMovies can you change the seconds all at once?

    If I want to change the duration of each photo in iMovie can I cange all at once?

    Yes. See this section of iMovie Help.
    http://help.apple.com/imovie/#mov3a883915

  • Is there no way to update the "Default Lables" on all slides once I've changed it under the Preferences?

    Is there no way to update the "Default Lables" on all slides once I've changed it under the Preferences?
    I really don't want to recreate the slides from scratch again.

    What about File, Export, Text Captions...? You'll have a Word document with two columns. Translate the second column (much easier in Word) and import again. That is the normal work flow for translation. Same is possible with XML instead of Word.

  • Reset monitors all at once with a script

    I am getting numerous SCOM Heath Monitor alerts for the following 2 conditions:
    AD Domain Availability Health Degraded
    AD Site Availability Health Degraded
    I have searched the internet for scripts to reset them each all at once. I have found a couple of scripts and ran them in the SCOM Shell and they say that that are resetting the alerts but in actuality, they don't.
    The scripts I used were found at these 2 sites:
    (url)http://blogs.technet.com/b/ken_brumfield/archive/2010/06/23/making-the-world-greener-one-monitor-at-a-time-_2d00_-reset-scom-monitors-enmasse.aspx(/url)
    (url)http://gallery.technet.microsoft.com/SCOM-2012-Batch-reset-63a17534(/url)
    Does anyone know of a script that actually works for this purpose.

    Use this simple PS, I am using this daily to reset health of closed alerts - please ensure you close the alerts as the script will only detect the closed alerts generated by the monitors
    Works well for my purpose - hope this helps...
    #PS to reset health of closed alerts generated by the monitors older than 7 days
    # Import Operations Manager Module and create Connection 
    Import-Module OperationsManager 
    New-SCOMManagementGroupConnection 
    $alerts=get-scomalert -Criteria "Severity!=0 AND IsMonitorAlert=1 AND ResolutionState=255"| where {$_.LastModified -ge ((get-date).AddDays(-7)).ToUniversalTime()} 
    if ($alerts -is [object]) 
    foreach ($alert in $alerts) 
    $monitoringobject = Get-SCOMClassinstance -id $alert.MonitoringObjectId 
    # Reset Monitor 
    If (($monitoringobject.HealthState -eq "Error") -or ($monitoringobject.HealthState -eq "Warning")) 
    $monitoringobject.ResetMonitoringState() 
    Faizan

  • Change .r3d source setting all at once

    Hi Folks
    We edited the film in Premiere and now I am about to grade my film shot on Scarlet, as you know we need to bring the entire sequence from Ppro to SG in Red logfilm.  So how can I change the source setting in Premiere all at once before bringing them to SG?
    Thanks in advance!

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, the issue is related to code/program, please post your question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • I have many contacts in address book from a certain company that just changed its name.  Is there a way to globally change all the contacts to the new company name all at once?

    I have many contacts in address book from a certain company that just changed its name.  Is there a way to globally change all the contacts to the new company name all at once?

    Rando510 wrote:
    Although clunky as you say, this sounds like a reasonably efficient way to accomplish what I was seeking.
    Address Book has no global find/replace. Bob Grove suggested one possible workaround; however, a grep-capable text editor (eg, TextWrangler) is better than TextEdit if complex strings are involved.
    An alternative is Bento (which is designed specifically to interact with the AB database), but it's not free.

  • Need help writing script to change version control for all document libraries in all sites

    Hello,
    I found this script, http://get-spscripts.com/2010/10/changing-sharepoint-list-settings-using.html that
    changes versions control for a document library.  However, many sites have many document libraries with different names.  The script below just changes a the settings to a document library that is named "Shared Documents", but does not
    change one if its named something else.  How can change the script to loop through all document libraries so their settings are changed?
    $site = Get-SPSite http://site
    $listName = "Shared Documents"
    #Walk through each site in the site collection
    $site | Get-SPWeb | 
    ForEach-Object {
    #Get the list in this site
    $list = $_.Lists[$listName]
    #Create a version each time you edit an item in this list (lists)
    #Create major versions (document libraries)
    $list.EnableVersioning = $true
    #Create major and minor (draft) versions (document libraries only)
    $list.EnableMinorVersions = $true
    #Keep the following number of versions (lists)
    #Keep the following number of major versions (document libraries)
    $list.MajorVersionLimit = 7
    #Keep drafts for the following number of approved versions (lists)
    #Keep drafts for the following number of major versions (document libraries)
    $list.MajorWithMinorVersionsLimit = 5
    #Update the list
    $list.Update()
    #Dispose of the site object
    $site.Dispose()
    Paul

    Sorry, I agree. It will update Style Library and other out of the box ones. Include the library titles in a collection and run the update against them provided these libraries are common across all sites. If not, you will have to first get an extract of
    all such libraries in all sites say in a CSV file and then update the script below to refer to the CSV records.
    Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction Stop;
    #List of Libraries to be updated.
    $Libraries = @("Shared Documents","My Document Library");
    $spAssgn = Start-SPAssignment;
    $site = Get-SPSite http://site -AssignmentCollection $spAssgn
    #Walk through each site in the site collection
    $site | Get-SPWeb -Limit ALL -AssignmentCollection $spAssgn |
    ForEach-Object {
    #Enumerate through all document libraries
    $_.Lists|Where{$_.BaseTemplate -eq "DocumentLibrary" -and $Libraries -contains $_.Title}|Foreach-Object{
    #Get the list in this site
    $list = $_;
    #Create a version each time you edit an item in this list (lists)
    #Create major versions (document libraries)
    $list.EnableVersioning = $true
    #Create major and minor (draft) versions (document libraries only)
    $list.EnableMinorVersions = $true
    #Keep the following number of versions (lists)
    #Keep the following number of major versions (document libraries)
    $list.MajorVersionLimit = 7
    #Keep drafts for the following number of approved versions (lists)
    #Keep drafts for the following number of major versions (document libraries)
    $list.MajorWithMinorVersionsLimit = 5
    #Update the list
    $list.Update()
    Stop-SPAssignment $spAssgn;
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • JSP Shell Script Output (All At Once Vs Line By Line)

    I have no problem calling a shell script and then displaying that output on a web page.
    However, I would like to display the output as the script executes (I want to print the output line by line as it happens), rather than waiting for the script to completely finish and then display the whole output all at once. The script checks a large database and takes about 10 minutes to run. I don't want to stare at a blank screen during that time, but of course want to watch it's progress on the display (when I run the script directly I print out status to the screen).
    Can someone point me in the right direction on how to do this?
    -jsaspo

    Bump...
    Anyone?

Maybe you are looking for

  • Timing Issue - Running sqlplus for each script in a list of scripts

    I have a large number of folders with sql scripts that I need to run from windows with sqlplus. The problem is the scripts must be run in order. When I loop through the scripts and run sqlplus for each one, they sometimes fail because things in the p

  • Hibernate mapping editor not working fully

    My hibernate mapping editor is not working fully. I can manually enter a new property into the xml and the design pane will update but if I try to add a new property in the design pane it only adds "<property/>" without the attributes specified. I lo

  • Windows can compile phonegap iOS apps in dw cs6

    ONCE I DOWNLOAD IN MY ANDROID PHONE AN APP FROM DW CS6-PHONEGAP VIA QR SCANNER, where saved the App downloaded? 2.3.6 Android... windows can compile phonegap iOS apps in dw cs6 on WINDOWS? to make win phone 7 or 8 Apps can I from dw cs6 or needed pho

  • People and Tasks pages stuck on loading in OWA - other settings not working

    Single Exchange 2013 CU6 on Server 2012 R2 in coexistence with Exchange 2007 during migration. Having a problem with OWA on Exchange 2013. When clicking on the People or Tasks tab they never load just say loading. Also unable to enter certain setting

  • Analytic Functions with GROUP-BY Clause?

    I'm just getting acquainted with analytical functions. I like them. I'm having a problem, though. I want to sum up the results, but either I'm running into a limitation or I'm writing the SQL wrong. Any hints for me? Hypothetical Table SALES consisti