Help! Style name registration

Hello

Name of the InDesign style paragraph and character style must be lowercase.

For example:

001_Head_Body_list

It should change it to:

001_head_body_list

Please support me, write a javascript script and send as

Could be eaisly figured out an unexpected space, break your code:

Source: app.activeDocument.characterStyles [i] .name is app.activeDocument. erStyles character [i]. name.toLowerCase ();

Replace with:

app.activeDocument.characterStyles[i].name=app.activeDocument.characterStyles[i].name.toLowerCase();

Mac

Tags: InDesign

Similar Questions

  • Cut and paste in Indesign style names

    Hello everyone, I'm new to this forum.

    I have a question about the cut and paste in Indesign: Let's say I have two documents.

    -In the first, I have several rules of paragraph style, let's say style1, style2, style3.

    -In the second document, I have exactly the same paragraph style (style1, style2, style3) names, but different formatting rules (for example in doc1 style1 is 13 times, the same style1 doc2 is Minion 11).

    What I want to do is to copy the text of document 1, the selected paragraph style name, but not the setting shaped styles. So when I did the copied text in document 2, can I get the text automatically style with rules of formatting of document 2.

    I can't find a way to do it: I cut & spent keeping the formatting, but not the names of the styles only.

    Did someone in the face of this problem or have a solution?

    Thanks in advance for your help.

    Hi everyone and thanks for your help.

    I finally found out why the cut & paste has not worked for me.

    The problem was that in doc1, I put all my styles in a folder, while in doc2 (take a guess!) No.

    That was the problem. Once I put in a folder with the same name as doc1 doc2 styles, everything worked magically.

    Thank you very much!

    Fabio

  • Retrieves the paragraph formatting with style name

    All the

    kindly help me how to extract the name of definition with example.txt formatting:

    FOR EXAMPLE:

    Name of the style: "Body".

    Font = "15".

    head = "" 18"" "

    Aligh = "Left".

    etc...

    Concerning

    Hurix

    Change by Dave Saunders: something prevents the work answer button. I hope that this edition will reactivate it.

    Hi Hurix,

    Welcome.

    Please indicate the question as answered

    Add the properties you need by following the instructions in the 3rd line.

    Trevor

    // Export Specified Details of Documents ParagraphStyles By Trevor
    // http://forums.adobe.com/thread/1445961?tstart=0
    exportParagraphStyleDetails ("appliedFont pointSize spaceAfter spaceBefore"); // add property names separated by a space - The Style Name is included automatically
    // see http://jongware.mit.edu/idcs6js/pc_ParagraphStyle.html for a list of properties you can add
    
    function exportParagraphStyleDetails (props /* A string list of the desired properties */) {
        doc = app.activeDocument,
        ps = doc.paragraphStyles.everyItem().getElements().slice(0),
        l = ps.length,
        c = 0;
        props = props.replace(/\s+/g, " ").split(" ");
        pl = props.length;
            var styleDetails = [];
        while (l--) {
            var  myStyle = ps[l];
            styleDetails[c++] = "******************************************************************\rParagraph Style Name: " + myStyle.name + "\r******************************************************************"
            for (var n = 0; n < pl; n++) {
                styleDetails[c] = props[n] + ": " + myStyle[props[n]].toString();
                if (myStyle[props[n]].hasOwnProperty ("name")) styleDetails[c] = styleDetails[c].replace (/:.+/, ".name: " + myStyle[props[n]].name);
                c++;
            }
        styleDetails[c++] = "\r";
        }
    
        temp = new File (Folder (Folder.temp) + "/" + doc.name + " Paragraph Style Properties " + ("" + new Date).replace(/:/g,"\xB7").replace(/G\S+$/,"")+ ".txt");
        temp.encoding = "UTF-8";
        temp.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";
        temp.open('w');
        temp.write("\uFEFF" + styleDetails.join("\r"));
        temp.close();
        $.sleep(300);
        temp.execute();
    }
    
  • The combination of files with the same style name, different styles

    I'm writing a book and I saved every chapter in a separate file. I will now copy all of the pages in a single big file, basically. The problem is - and I would have thought about this before, I have used the same style names in each chapter, but made some settings for styles in the last chapters I want to apply to the previous chapters. If I combine these files in a new file, how can I make sure that the later styles are those that is used (IE, overwrite the previous styles with the same name). In other words, can I specify a 'master' style that overrides all "local" styles that are imported from a specific file (I'm not sure I used the master and local correctly, but I hope you know what I mean.)

    Also, just out of curiosity, if I wanted to keep these two styles that had the same name, is there a way to do it, too?

    Thanks in advance for any help!

    You prepare a book, use an Indesign 'book' of the to do!  This is exactly what you need, read all about it here.

  • My hotmail account has certainly was hacked and used to change the DNS settings on a vauable domain name registration.

    My hotmail account has certainly was hacked and used to change the DNS settings on a vauable domain name registration. Indeed, they stole the domain name, which used my hotmail account as account checking the change of domain name registration. It is a police matter. How can I get the security of Hotmail team to freeze the mail in the account and then return the account for me? I am the owner of long-standing account, since 1995. What should I do to prove that I am the rightful owner of the account?

    How can I contact Hotmail security ASAP?

    Hi JoePiecora,

    Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:

    http://windowslivehelp.com/forums.aspx?ProductID=1

  • Incompatible default style names

    Hello

    Developing a plugin for InDesign CS5 and we using ActionScript (extension generator) to build the user interface.

    On the side of ActionScript, the object

    com.adobe.csawlib.indesign.InDesign.app.activeDocument.allObjectStyles

    contains a named style

    [Graphic basic block]

    We would like to be able to get the UIDRef of this style on the side of the plugin. However, the following code:

    GHS IStyleGroupHierarchy * = styleGroupMgr-> GetRootHierarchy();

    UIDList styleList(::GetDataBase(styleGroupMgr));)

    GHS-> GetDescendents (& styleList, IID_IOBJECTSTYLEINFO);

    for (int itemIndex = 0; itemIndex < styleList.Length (); itemIndex ++) {}

    UIDRef currentItemRef = styleList.GetRef (itemIndex);

    ObjectStyleInfo InterfacePtr < IObjectStyleInfo > (currentItemRef, UseDefaultIID());

    print objectStyleInfo-> GetName()

    }

    never print the name above. However, he finds a named style

    [Normal chart block]

    that is a problem, if we assume that a style is identified by its name.

    Is our assumption regarding the unique name incorrect, or is this a bug? If our hypothesis is false, what is the right way to uniquely identify a style?

    The initial default style names are localized.

    In scripting, you can use the localizable names with a special prefix:

    app.objectStyles.itemByName("$ID/[Normal Graphics Frame]") .name "

    Result: [graphic basic block]

    app.translateKeyString ("$ID / [Normal graphic block]")

    Result: [graphic basic block]

    app.findKeyStrings ("[basic graphic block]")

    Result: $ID / [normal chart block]

    Remember that the default style is a choice of the user (preferably) rather than these names to find the style of hard wiring.

    On the plugin side, take a look at the getters UID of IStyleNameTable or IStyleGroupManager.

    Dirk

  • Remove the paragraph style name space

    Hi all

    There is a space character at the end of my paragraph style name.

    How can we delete [space] after the end of the paragraph style name? I don't want to delete [space] if she came between paragraph style names.

    Please provide the js code.

    Thank you

    Tansk

    Please provide the js code.

    Oh sure, you hurry, right?

    You can not call the forum for all the subordinate tasks script? Please? In these six hours you were to twiddle their thumbs and nervously checking the forum every five minutes or so, you could do this by hand.

    Oh whatever:

    for (p=2; p		   
  • JS: Grep in the style names

    Dear all,

    Is there a way to gather and search under certain conditions paragraph styles? For example: paragraph Gather style names that start with the character 'H' in a table (as "H1", "H2", "Head", etc.).

    Kindly let me know the coding basis for it.

    Thanks in advance.

    concerning

    Lionel Messi

    Hey!

    It's really easy to get...

    myDoc var = app.activeDocument;
    var myStyles = myDoc.paragraphStyles;
    var foundStyles = Array();
    var searchString = String ("H"); You can enter more than one startng letter
    var tempName = String();
    for (i = 1; myStyles.length > i; i ++) {}
    tempName = myStyles [i] .name;
    If (tempName.substr (0, searchString.length) == searchString) {}
    foundStyles.push (tempName);
    }
    }

    List styles found
    var nameList = String ("/");
    for (i = 0; foundStyles.length > i; i ++) {}
    nameList += [i] foundStyles + ' / ';.
    }
    Alert (NameList);

    tomaxxi

  • Home Server 2003 domain name registration does not work.

    I had to reinstall my Home Server software and when I go to update the registration of domain name and the link to my live account it back with an error.  I even tried with an error always the same different domain name.

    Pleas repost your request in the Homepage Server Forum, thank you!

  • Need quick help to name the folder

    Hello

    I'm trying to create folders. But I'm not able to give the folder name begin with "~" symbol. Please help me solve this problem. Tried coding:

    var myFolder = Folder.selectDialog("Choose Main folder to created subfolders");    
    var mygetname=prompt("Enter the Event Name","");
    new Folder(myFolder + "/" + mygetname).create();  
    new Folder(myFolder + "/" + mygetname+ "~CF").create();// this folder not created  
    new Folder(myFolder + "/" + mygetname+ "/Final" ).create();  
    

    Thank you

    Kitty

    Hmmh?

    Why do you need a "~" symbol at the beginning of the folder name?

    Regardles of: I'm not a direct way. But it could be a workaround:

    var myFolder = Folder.selectDialog("Choose Main folder to created subfolders");
    var mygetname=prompt("Enter the Event Name","");
    new Folder(myFolder + "/" + mygetname).create();
    var toChange = new Folder(myFolder + "/" + mygetname+ "/"+"temp");
    toChange.create();
    toChange.rename ("\u007ECF");
    new Folder(myFolder + "/" + mygetname+ "/Final" ).create();
    

    Have fun

  • Help with incredible registration / Product Code procedure

    I bought 13 items first packaged and by trying to find/use the process series/product code number.

    I've been to the https://redeem.licenses.adobe.com/getserial site where you are supposed to enter a redemption code that 'Help' are 24 alphanumeric characters and located on the box or sleeve.

    There are six boxes in the entrance which can only mean that 4 characters should be in each box.

    There is no code redemption on the box and the sleeve has a number that does not match the format or the number of characters specified above.

    There is a single item of on handle and box 8-digit numbers that can not be.

    Under the sleeves Figure 8 number is a code that do not meet the 24 characters or groups of 4 required model.

    The code looks exactly like this, except that I substituted XXX instead of two sets of letters below (because if it is a product code, I won't post).

    DHS/A, PRE, 13.0, MAC, GEN, XXX, LRE

    / WWF/D/XXX

    Now there is no point for me and I don't see how there is nothing I can get above that meet the entry requirements for the product to https://redeem.licenses.adobe.com/getserial code entry

    It must be the most hostile registration procedure that I've met in all my 25 years of experience with computers and software.

    firedeva

    If you bought the box of first 13 items, you can expect something like that

    1. a box rectangular thin hard cover (colorful Adobe) in which is inserted a white rectangular box.

    2 in this rectangular box white installation discs, one for Windows and one for Mac - each drive is in its own envelope.  There is probably a manual mini in this area also.

    3. make sure the white rectangular box. On the back of this box must be a label. This label must contain the serial number of the product for the two installation disks.

    xxxx - xxxx-xxxx-xxxx-xxxx-xxxx

    The serial number is clearly identified as serial number.

    You know very well if the seller has sold you the product with a redemption code?

    RTA

  • Sort of style names

    Usually with learning on the way to the DLI to do things and practice by taking an existing set of documentation and rebuild in DLI. I use Delete style as making redundant styles have disappeared and out-of-date styles are remapped in detail: but it takes me more time than necessary, because neither the paragraph styles Committee or replace it by... pulldown seems to have heard of alphabetical order! Is there something I need to know about the style display lists like this? Thanks in advance.

    Ain't that always the way... come discover the sort by name command in the menu styles of paragraph < g >

    Have you tried clicing the Panel menu and choose sort by name?

  • CS3: need script to replace spaces with underscores in the paragraph and character style names

    Help! I am very new to scripting.

    I managed to find and tweak existing javascripts to search through all my paragraph styles to disable hyphenation and off balance the jagged lines, but I need help with this one.

    I work on Mac OS 10.4.11 using Indesign CS3.

    I need a script that will search all my paragraph and character styles in my open Active document and replace spaces by underscores.

    Can someone help me with this? It would be greatly appreciated!

    1. I don't know, but I think you can use all the regular GREP inside this function codes. Do not use the quotation marks around of the expression, use slashes! (Why? Just a curiosity of Javascript... maybe a hack that goes back to the gray mist of JS development...)

    This work should - but rather the code above, this is not tested:

    .. Replace (/ [-\ / ()-. _] + / g. '_');

    The GOLD group inbetween the brackets contain all the characters you want to replace with an underscore: the hyphen (this has to be the first character in the group, else it will be interpreted as a range of characters from each side!), space, slash (this one is 'special' inside the function replace JavaScript, so I think he needs to escape with a backslash)! in parentheses, a period (not sure if it should escape - into ordinary GREP, it's the wildcard character for any character, but maybe he loses his magic within a group of GOLD) and finally... the underscore character. Why?

    Well, this replacement string comes with a free bonus. Note the sign after the installment of GOLD +. This means that a whole sequence of these characters is replaced by a simple underscore: "it's / a - / test" will become "This_is_a_test". Adding the underscore line itself to the string of research means that it will also find the whole chain 'space space (stroke underscore)' in 'This style (_)' and, oh magic!, replace it immediately with a single underscore.

    Just FYI, the tiny "g" after the closing slash is abbreviation of 'global', i.e. at the global level, replacing in this string. replace the default values for a replacement only (why? see above...), and adding the 'g' ensures he keeps replacing until it is not find matches more.

    2 see point 1.

    3. uh, yes it's true, but you will need to check very carefully if nothing inside one of these basic models is substituted. You can apply a base style and add substitutions to make look like a subtitle, but that isn't making it a. And to the next paragraph, you can apply a base style and add substitutions to make it look like a paragraph of plain text (etc.). It's a signature of witness to bad formatting...

  • Need help with Toshiba registration

    I registered my product, but I chose the wrong puchrased countries: United States
    I have puchrased on the Switzerland, how can we change this?

    Here is the link where you can see product information http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/globalEntitlement.jsp
    Serial number is: 9B120304K
    Thank you)

    I don't understand why you use US page if you bought your laptop in Europe.
    Laptop registration using http://eu.computers.toshiba-europe.com/innovation/generic/services_warranty_reg_map_eu/

  • Help with measurement registration

    Hi all

    I try seizes a sourcemeter Keithely voltage/current/resistance measures and their trace on the cards. There is also the possibility to record the measurements by pressing 'save', which then encourage the user a path name. "After the" record "button again, the file is saved and closed. Throughout the process the file open, save and close the file, the measures must be plotted on maps without interruption.

    I used a model of State machine, with the value of the 'save' button as input to decide state transitions, used in a door "select." However, when I run the VI, state transitions does not happen, the suspension of the execution and probe the value of the button as its production yields remains the same regardless of the State of the button.

    I have set the operation of the button "change when you press on.

    I know it's a common task, but I'm pretty stumped on how to solve this problem. The VI file is attached, any pointer is appreciated.

    Thank you

    Typedef enum will solve the problem of names.  Once that all sources (controls or constants) related to the State line in all cases and outside the loop are all copies of the same typedef, returns the names.

    What's happened is that you have changed one of the enums or created a new.  He had a different type of data.  Yes, it was still an enum and always produces an integer U16, but because the items were different, it was considered as a different data type.  When two different types of data are connected to the wire goes to the terminal selector, the structure cases trying to find the "common denominator", in this case an integer U16, but not the enum.

    I converted the enum constant, you had with 'save' and other values for a type of def and copied several times.  When I replaced all other State enums with this def enum type, the names are returned.

    Lynn

Maybe you are looking for

  • Is it possible to merge videos?

    Is it possible to merge short videos that I took with my iPhone 5 to make a video?

  • How closa pdf format

    Hello everyone! I know that open a PDF in labview exceeded then discussed here. However, I couldn't find anything about closing a pdf file. Here's the deal! I'm generating a pdf report after I finished my test, then I save and open this pdf report. I

  • Windows Media Player is missing in Set Program Access and Computer Defaults

    I recently discovered that when I wanted to install a default media player, Windows Media Player was absent from "Default programs". When I ran a search on this problem, I had the suggestion that I enable access to Windows Media Player with "Set Prog

  • NAS (CASE) password, I forgot? how he know or change...

    Please help me. I'm running 4.7 NAC and I have lost / forgotten my password of the NAC/CASE... (I am talking about web login password) Help please... Thank you...

  • Error facebook for Smartphones blackBerry :(

    Failed to refresh the flow, he repeats to me: {We are unable to reach th Facebook server at this time (1403)} In any case, the facebook app does not always work on my BIS, cuz my carrir dosen't provide a full BIS, but after the last update, the error