Name and Number selected paths?

I am working on a very large .ai file of a baseball stadium render. It contains many small sections and box seats that need named and numbered in this format: section::100, section::101, ... and so on. Right now, I'm having to go through and rename each path individually. Is there a script that will save me TONS of time by automating this for me?
I found this one on here, which is a good start for what I need, but it doesn't let me only number selected paths, nor does it let me start the numbering where I want (say at 100 and go up from there).
#target illustrator
var docRef = app.activeDocument;
var newName = prompt ("What's the base of the new name","base");
var myNB = docRef.pathItems.length;
for ( i = 1 ; i < myNB; i++)
var finalName = newName + i;
docRef.pathItems[i].name = finalName
Thanks in advance!!

I have taken a quick guess at what you want but Im supposed to be busy at work…
#target illustrator
var docRef = app.activeDocument;
var newName = prompt ("What's the base of the new name","base");
var stNumb = prompt ("What's the start number","1");
var myNB = docRef.selection.length;
for (var i = 0 ; i < myNB; i++) {
     var finalName = newName + stNumb;
     if (docRef.selection[i].typename == 'PathItem') {
          docRef.selection[i].name = finalName;
          stNumb++;

Similar Messages

  • Query to combine document series name and number

    Hi all,
    Example of Sales Quotation document numbering as following:
    Document series name: SQ10
    Document number: 1001
    Can I have a query to combine the series name and number as one field, e.g. SQ101001?
    This is for the purpose of if there is revision in a sales quotation, new quotation will be raise and UDF need to display previous sales quotation no.
    Thanks in advance!
    Phoebe

    Hi,
    Thanks for your help.
    Got the query as following:
    select T1.SeriesName + cast(T0.docnum as CHAR(15)) AS 'SQ No.', T1.[SeriesName],T0.[DocNum], T1.BeginStr AS 'Prefix', T0.[CardCode], T0.[CardName]
    from OQUT T0, NNM1 T1
    where T1.ObjectCode = 23 and T1.Series = T0.Series

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

  • Adding file name and file full path to a page

    Hi all I'm new to scripting
    What I want to do and don't know how to go about it is to run a script that collects the saved file name
    and the full path where the file is saved on the network and displays it on my document
    If any one has done something similar or if some one can help me create it it would be appreciated
    Thanks Gabriel

    var idoc = app.activeDocument;
    var itext = idoc.textFrames.add();
    var file = idoc.fullName;
    itext.contents = file.fsName;

  • E71 Contact List - Name and Number view

    hi everyone,
    i am using the nokia E71 and have a question regarding the contact list. i have imported about 200 contacts to the Phone Memory (not the sim card).
    Now when i open the contact list, it displays all these contacts in the First Name Last Name format. And I have to actually enter the individual contact to be able to see what their default telephone number is.
    Is there any way to change the view in the contact list so it displays the Name and Number, without the need to go into the actual contact.... Or at least a keyboard shortcut like in older nokia's (the # key used to do it).
    Please ask me if I wasn't clear enough. Thanks.

    any idea's anyone?

  • Reverse geotagging in lightroom 5 with street name and number

    i would also like to have the street name and number on the metadata field in lightroom 5. how can i get that?
    thanks

    If you have an iphone, there is an app called GeoTrack that I think will work.
    You turn it on while you are shooting and then import and sync the geo track to the LR files (timing must be synced first).
    Worth checking it out, at least
    Good luck
    Tom

  • Caller name and number not displaying on my iphone 4s

    Caller name and number not appearing on my iphone 4s..

    Hello mukundaniyengar,
    We've an article that provides a few additional troubleshooting steps that may help get your iPhone's speaker working again.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Cheers,
    Allen

  • How long is a recent list stores in an iPhone in messages? I deleted a contact almost a year ago and it still comes up as a name and number?

    How long is a recent list stores in an iPhone in messages? I deleted a contact almost a year ago and it still comes up as a name and number and when you click on the I button, it says "delete from recent list"
    Hardly a recent number

    Yeah that info will certainly carry over form the backup, but once you delete it from recents, it shouldn't show up anymore.

  • Since update to 5.0.1 iphone contacts caller id shows email address rather than contact name and number

    Since i upgraded to 5.0.1 . My iphone contacts caller id shows email address not contact name and number. Is this a settings issue?

    Hi, it's maybe happening the same here!
    I have an iphone 3gs. Since I did the upgrade to ios5, when I receive an sms with the notification of a missed call I am no longer able to see if it's coming from a number of my contact list, because in the sms the message correspondence for that contact underlines now the number PLUS the first 2 cifres of the date! So the number results always being 2 numbers longer and it's impossible get to the original.
    That's really a major problem for me, as I'm no longer able to know who has called me, if someone I know (and who) or if a new number.
    I add a capture to explain it better (I have banned a couple of cifres for privacy reasons).
    Anyone solved the problem or can help please?
    Thank you!

  • Copying contacts name and number onto SIM card

    Hi. Firstly I know there are topics* on this, albeit outdated and offer no real solutions.
    This issue need serious attention.
    Scenario
    BB Curve scroller is broke, can't scroll up/down.
    Backed up my contact list to restore later when I get my fixed phone back.
    Meanwhile, to use a replacement phone, I will need some contact names + numbers on my SIM.
    I cannot count on the replacement being a BB, don't count on sync.
    Solutions
    Copying a few contacts one-by-one is _not_ an option, without a scroller this is impossible.
    Example: Home screen > press "c" for contacts -> filter to contact > menu > press "v" to select view > can't scroll to the number to actualize the 'copy to SIM' menu action.
    So, how can I copy my contacts to the SIM card?
    Notes
    Reading the older threads, there is very unhelpful biased rude remarks about how this requested "feature" is not 'important' enough or a real requirement for modern phones.
    I say this house is built on wobbly foundations. This is the base of HID (human interaction devices), cross communication and transfer of data. 
    I'm disappointed in RIM for locking down the device in such a way - so many folks ask for this feature, because it is a standard around since the first of cellular phones.
    SIM card may only have 32K of storage, but I still expect them to keep a name and a number if I need.
    * http://supportforums.blackberry.com/t5/BlackBerry-Storm/Copy-Mulitple-Contacts-to-Sim-Card/m-p/42057...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/HOW-DO-I-COPY-CONTACTS-TO-SIM/m-p/182142/hig...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/Copying-all-contacts-from-BB-strom-handset-t...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/Moving-contacts-to-the-Sim-Card/m-p/86036/hi...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/copy-contact-list-to-sim-card-not-one-by-one...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/How-do-you-copy-all-your-contacts-to-the-SIM...
    http://supportforums.blackberry.com/t5/BlackBerry-Storm/Copying-contact-to-sim-card/m-p/162675/highl...

    Unfortunately, I don't either. If you delete the MobileMe account from the iPhone, I believe you'll erase all of the contact info on the iPhone. If it's not in MobileMe either...well, that's not good!
    One possibility for the contacts data (but not the calendar data). Contacts are backed up when you sync the iPhone (not to your Address Book via sync with MobileMe active, but in the iPhone backup made by iTunes before a sync). There's 3rd party app, MobileSyncBroswer, which can export the contact info from the iPhone's backup file on your hard drive. You'd need to buy a license to actually export the contact data, the free version lets you see part of the contact info so you can make sure it's there.

  • I am trying to use siri. It was working earlier. Now when I ask it to call name and number it say, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN) I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.   What am I doing wrong or how can

    I am trying to use siri, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN)
    I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.
    What am I doing wrong or how can I correct it.

    Siri Fix
    Turn OFF Siri
    Reset Network Settings
    Turn ON Siri
    Done
    Steps:
    Tap Settings App>General>Siri>Turn OFF
    General>Reset, near bottom>Reset Network Settings
    Tap Settings App>General>Siri>Turn ON
    Done

  • How to find sheet names and number of sheets in excel file

    Hello friend
    I am reading and writing excel sheet with jdbc -odbc .
    But i am not getting excel sheets name and how many sheets in any
    excel file .
    I don't want to use third party tool such as apache or jxl .
    please give suggestion .
    Regards,
    Nitin Kumar jain

    I think you can find them via Connection.getMetaData(). There's a call in the metadata block which lists tables - tables approximately corespond to sheets in a workbook (I think there's a $ prepended to the names).

  • Checking for month name and number in different language?

    I have to let people search for documents by date. The database is used by French-speakers as well as English-speakers. The search allows users to type in free text (because it's not just dates they might search by, though if they do type in something that's intended to be interpreted as a date, that's the only thing they're allowed to type in). So, I might get '23/Apr/2009' or '2009/04/23', for example. (I also have to allow them to submit 23.04.2009 and 23 04 2009 and any combination of the above!)
    I have written a function which breaks the string into three bits, and then I work out if each bit is a year, or a month, or a day with simple rules (eg, if it's a number between 1900 and 2400, it must be the year component).
    When it comes to the month, I do two things. One is obvious: is it a number between 1 and 12? The other is, is it a month name that appears in a list of 'allowed' month names. So my function does this at the start:
    v_validmonths := 'january,february,march,april <and so on>';
    v_validmonths := v_validmonths || ',janv,fevr,avr,mai, <and so on>';Then I do this:
        for x in 1 .. listlen(v_validmonths,',') loop
          v_probemonth := listgetat(v_validmonths,x,',');   
          if instr(lower(v_partone),v_probemonth) > 0 then
            v_month := extract (month from to_date(v_partone,'MON'));
          end if;
        end loop;   IE, I compare the first component of the string (v_partone) with the list of allowed month names. I repeat that for the other two parts of the supplied string. As you can see, if one of the parts of the supplied string matches an allowed month name, I then try to extract the month number into a variable, using Oracle's own extract function.
    And that's where my problem arises. Because although "aout" is valid French for August and is permitted by my list of valid months, the extract function fails to understand it. A simple select extract (month from to_date('AOUT','MON')) from dual, for example, gives an ORA01843 (invalid month).
    How can I get the code to work with French (and German, actually) months and month abbreviations whilst also being able to understand English ones? Is there an in-built function that would allow me to do this? Or is there some way neatly to say, 'yes: AOUT is in the list, and it's month 8' without me having to rely on the extract function to work it out?
    (I realise that the business requirement here is very peculiar and your first reaction will probably be "this is horrible!". I will absolutely agree with you! But this is the requirement as has been explicitly specified by the MD and I can't negotiate it away, sadly.)

    Hi,
    Many of Oracle's date functions allow a parameter where you can override the current NLS settings only for that function call.
    For example:
    SELECT  TO_DATE ( 'JUIL.'
                     , 'MON'
                     , 'NLS_DATE_LANGUAGE=FRENCH'
                     ) AS month
    FROM    DUAL;You could also create your own table of month names
    NAME     NUM     LANGUAGE
    JANVIER   1     FRENCH
    JANV       1     FRENCHand look up the names in this table, rather than in a string hard-coded in the function. This might be especially useful if you wanted to allow your own abbreviations or spellings (e.g., ignoring accent marks).
    Edited by: Frank Kulash on Dec 16, 2010 11:40 PM

  • ESS: Record working time - employee name and number

    Hi All,
    I'd like to display the employee number and name in the Record working time screen.
    Please help me with the configuration I need to do in IMG or on the portal side.
    Any help is greatly appreciated.
    Thanks,
    Rajit
    Points will be awarded.

    Hi Siddharth,
    On the General Information page, there's a Related Activity iview which contains a link for Record Working Time.
    A manager can select an employee in the Data View and then can click on the Record Working Time link which opens up that emp's time sheet.
    In such a case, display of employee number and name is very useful and I'm trying to solve this.
    In IMG's "Define Field Selection" -> Data entry section, there are employee number and name fields that I set for the data entry profile. But they are not displayed in the portal.
    Any ideas are welcome.
    Thanks,
    Rajit

  • Saving documents via Scripts: Get current file name and set save path/file type

    I am writing a script that will:
    -Make all layers invisible
    -Make a layer named "background" visible
    -Delete all the invisible layers
    -Save the docment as an EPS file (leaving the original document untouched)
    I am new to scripts and so have based my script by copying code from other scripts.
    Here is my code:
    var doc = app.activeDocument;
    var name = doc.name;
    var hide = function (){ // hide all layers (based on http://forums.adobe.com/thread/644267)
         var L=doc.layers.length;
         for (j=0;j<L;j++){  doc.layers[j].visible=false; }
    hide();
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++) {
                  // Create the illusrtratorSaveOptions object to set the AI options
        var saveOpts = new IllustratorSaveOptions();
        // Setting IllustratorSaveOptions properties.
        saveOpts.embedLinkedFiles = true;
        saveOpts.fontSubsetThreshold = 0.0
        saveOpts.pdfCompatible = true
    //Set up Variable to access layer name
              var currentLayer = app.activeDocument.layers[i];
    // Loop through the layers and make the back ground layer visible
              if (currentLayer.name == "Background") {
                        docName = name + currentLayer.name+".eps";
                        currentLayer.visible = true;
    // Delete Invisible Layers (based on http://www.cartotalk.com/index.php?showtopic=7491)
    var myDoc=app.activeDocument;
    var layerCount=myDoc.layers.length;
    for (var ii = layerCount - 1; ii >= 0; ii--) {
        var currentLayer = myDoc.layers[ii];
        currentLayer.locked = false;
        var subCount = currentLayer.layers.length;
        for (var ss =subCount -1; ss >= 0; ss--){
            var subLayer = currentLayer.layers[ss];
            subLayer.locked = false;
            if (subLayer.visible == false){
                subLayer.visible = true;
                subLayer.remove();
        if (currentLayer.visible == false){
            currentLayer.visible = true;
            currentLayer.remove();
    // Save Out Document with New Name
    var saveName = new File ( doc.path + "/" + docName );
    doc.saveAs( saveName, saveOpts );
    Everything works fine except:
    1) It saves the document with the name AdobeIllustratorBackground as opposed to the name of the document
    Also, I am not sure how to tell the script to save as EPS and to specify the save location.
    Could some one give me some pointers?          Thanks!

    Thanks! I changed my code to this:
    var title = doc.name;
    var title = title.substring(0, title.length - 3);
    And it now works! (The substring thing removes the .ai extenion).
    However, how do I get it to save it as an EPS? (I found this script that  saves as PNG, but I am not sure how to adapt it to EPS).
    Also, how do I set the file output path?
    Thanks for any help that can be offered.

Maybe you are looking for