Changing the names of paragraph style

I asked this question a month ago, but I did ' t really ask him just.

I get InDesign to InDesign6 documents. In the process, we change the style names to make things future compabile makes all the spaces. periods, dashes, etc.

Thus, for example, title 1 becomes Heading_1 in Page No. -left becomes PageNo_Left, etc. Easy, just do one or two documents by hand, but I literally desgines of the documents that are going to need it.

So, I'm looking to write a script to automate this process, more or less. I think I need something like:

App.documents [0].paragraphStyle.Item ("Heading 1"). Name = "Heading_1".

App.documents [0].paragraphStyle.Item (page no. - Left). Name = "PageNo_Left".

etc.

Am I headed in the right direction? Any advice would be greatly appreciated.

Figured it out. Script is:

app.activeDocument.paragraphStyles.item("Heading_1").name = "Heading_1".

app.activeDocument.paragraphStyles.item("Page_No.-Left").name = "PageNo_Left".

Tags: InDesign

Similar Questions

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

    Hello

    I made a script to change the language in all styles of paragraph for "French", but when I run it I get the error: "Invalid request on the root style. Could you please tell me what I'm missing?

    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i ++)
    {
    myStyle = myStyles [i];
    myStyle.appliedLanguage = "French";
    }

    Parargaph Style #0 is [No Style], and you cannot change this way. Simply start your loop at 1.

    Style #1 is [Basic Style], and if you have trouble as well to change this, simply start at 2.

  • How can I change the name of the source to PDF document?

    Mac OS X 10.10.4 Acrobat XI, worm 11.0.11

    I used the "Print to PDF" feature like the Mac OS to create paragraphs of a document Word 2011. Each paragraph should be seen or downloaded from Blackboard server at our school. Seen on the web page, every paragraph appears with a tab titled with the title of the document to the original source of the word, not with the title of the PDF file. See picture attached.Tab shows original source document.jpg

    I have 2 questions. Q1: What is the name of the part of the PDF file that displays the title of the source document? Q2: Can I change this to reflect the name of the file section, rather than the name of the original source document?

    Thanks for any help.

    Hi Samantha,

    As you created the other functionality of paragraphs in a larger Word Document files, they would appear with the name of the Original file only.

    What you can do to change the name of the file a name of origin is trying to save with a different name and looks so differently.

    You could also try to modify the metadata of the files section and see if that helps.

    Run the Original file > go to the file tab > properties > Description > additional metadata and then try to fill in the details mentioned here and see if that helps.

    If it does not, save them to a different name might be an option.

    Concerning

    Sukrit diallo

  • How to change the name of the layer with Wacom stylus?

    Someone at - it just good advice on that?

    50% of the time that I do this menu style come to the place.

    With the mouse, no problem, with Wacom pen, it isn't the case.

    I don't see an option to right click to change the name of the layer, maybe I'm not? This would help a lot. Thank you!

    You're not alone: http://feedback.photoshop.com/photoshop_family/topics/photoshop_hit_area_for_double_click _ to_change_layer_name_is_too_small_cs3 see the solution out there and also maybe vote for this possible solution: http://feedback.photoshop.com/photoshop_family/topics/allow_renaming_of_layers_in_layer_st yles_dialog

  • How to change the name of iWatch

    For some reason when I bought the new iPhone 7 and complete matching, it has the wrong name.  I must say my name and my husband.  I have looked at everything in the watch/phone and may not know how to solve this problem.  Anyone has any ideas on how to get my name back?

    Thank you

    J

    Hello

    On your iPhone, in the application of the watch, go to: Watch My > General > topic > name - change the name as desired.

  • Change the name of the file of "Import.xls" selection in Applescript

    Hi, I'm a tiger, but I try to change the name of a file in a folder (which can be any name that is) a name known.  In the end, just trying to import a file known to filemaker and need the name to be a known name.  That's what I have so far, but I have simply not success.  This goes to the folder 2 window and selects the first file... no problem, but, I can't seem to change the name of 'import.xls '.  Only excel files will be present in this folder, so I'm not worried about it.

    The other thing I would do is if there is no file in this folder to jump above everything and do nothing.

    Thanks for your help!

    Tell application "Finder".

    activate

    the value target of Finder window 2 to folder "Orders_to_Enter" of folder "Documents" of the file 'MINIJOHN'from folder 'Users' of startup disk

    Select the first file of the window of Finder 2

    Try

    the value the name of the selection of "IMPORT.xls".

    end try

    end say


    say

    Hello

    No need to manipulate the selection. You can just write something like this:

    set d to (path to documents folder as string) & "Orders_to_Enter:" as alias
    tell application "Finder"
        --open item d -- optional
        tell (item d's file 1 whose name extension = "xls")
            try
                set name to "IMPORT.xls"
            end try
        end tell
    end tell
    

    Tested under OS X 10.6.8.

    Good luck

    H

  • How to change the name of a device

    I would change the name of my computer/devices the way they appear in my iTunes account.  For example, instead of this MacBook Pro 13 "I wish it were different.

    On MacBooks, the name of the device is the Apple menu > System Preferences > sharing.

    On iPhone, iPad, iPod Touch, it's with settings > general > topic.

  • change the name of my apple device

    I have a new iPhone 6 which I restored it from the last backup on my iPhone SE - but now information Apple ID, that the new phone is listed as iPhone-I would like to change it to be called iPhone 6 because it is confusing, I can do this?

    Here is the statement to change the name of your iPad, iPhone or iPod - Apple Support

  • How can I change the name of the ion HD my Time Capsule airport

    My time capsule airport has changed its name to data and now I can't use it. What can I do?

    Not sure why you can't use 'Data' as the name of the disk hard Time Capsule, since it is the default value.

    But, if you want to change the name of 'Data' to something else...

    Open the AirPort on your Mac utility... (Finder > Applications > utilities > AirPort Utility)

    Click on the image of the time Capsule

    Click on edit in the window that appears

    Click the disks at the top of the next window

    Next to Partitions, you will see "Data".

    Click directly on the name of 'Data' and the box will change to allow you to edit the name, just as you can change the name of any other player

    In the example below, I changed the name of the drive 'safeguards '.

    Click Update at the bottom right of the window to save the changes you have made

  • change the name of the computer

    I gave my computer to my friend. It has the name changed. OS X.11.6.

    I assume you are talking about changing the name of the computer you want to actually change the name of the account.

    Change the name of the OS X user account and the name of folder on your Mac - Apple Support

    Hope this helps, good luck to you.

  • TB is automatically changing the name of the sender

    Here's a strange. Whenever I get an alert message from Twitter to one of my email accounts, TB change the name of 'From' to 'James Smith (via Twitter)'. This includes anything sent from the address "[email protected]". I checked all my Message filters, and there is no rule, put in place to rename incoming emails from Twitter, so I'm stumped.

    For the record, I doubt that this has nothing to do with Twitter. It is a question of Thunderbird.

    What is in the source code headers?
    Select E-mail
    Click on "More" and select "view source".

    Y at - it any mention of "James Smith (via Twitter)"?

    Check address books, including ' collected addresses:
    Y at - it any mention of "James Smith", associated with an email address @twitter.com? It might be in a name section "display".

  • How to change the name of my iphone to Apple ID to my name

    I used my wife Iphone up to my don't we arrived, but now to the Northeast there name my wife Icloud. How do I change my name without leaving Icloud?

    You can change the name of your phone in settings > general > topic > name

  • is it possible to change the name of a file before I download on my pc

    When I download a file it appears in my download as «0.pdf» folder If I have more than one, it a number after the document. Then I have to open each one to see what it is.
    Windows 10 64 - bit

    If you change your download settings to a single folder set to show the Save as dialog every time, you can change the name of file as well as to choose the location. Please see this article to find out where to change this setting: Start, homepage, tabs and download settings.

    Does it work?

  • Changed the name of data

    SUMIFS (data: $C, data: $B, $A2, given: $A, "> =" & B$ 1, data: $A, "<" & (EOMONTH(A1,0) will GET ($1.0 B) + 1))

    It's the formula that I used until I changed the names of "data Plan". The original names were:

    A1

    A6

    A12

    B1

    B6

    etc...

    I changed the plan of names...  I want to start all over again... The original formula still works?

    The original formula should still work as long as the new plan names are spelled the same in both tables.

    SG

  • How can I change the name of my phone?

    When I got my new phone and connects for the first time, it is automatically set up as 'phone of the Dean. Dean is my partner. How can I change it to my name to help with sharing and downloading with my other devices?

    Hi there JaDean99,

    Congratulations on getting a new phone! If I am not mistaken, you want to know how to change the name of your iPhone. If this is the case on the head to the settings app > tap general > press. Then type just the first line that displays the name of your iOS device. Rename the device to what you want, then tap done.

    If you were wondering where I got this information, I got this knowledgeable Apple Support article: change the name of your iPad, iPhone or iPod - Apple Support.

    That's all!

    I hope this helps you.

Maybe you are looking for