I want to open "Paragraph Style Options" dialogue using Script(jsx)

Hi,
I have created a paragraph style using JSX.
var myDocument = app.activeDocument;
var myParagraphStyle = myDocument.paragraphStyles.item("myParagraphStyle");
Now I want to edit my paragraph style using the "Paragraph Style Options" window. How can I open the window for myParagraphStyle using JSX?
Is there any way to do it? I don't want to manually double click the name in the list to open it.

@kapoor_aman27 – with a little trick we could select a distinct paragraph style in the Paragraphs Style panel.
Add a new text frame to the document, add some contents, one character is sufficient. Format its contents with your paragraph style. Set the Paragraph Styles panel to visible. Select the text in the text frame with something like that: app.select(myTextFrame.texts[0]). Remove the text frame; the paragraph style stays selected in the panel.
The next step would be to invoke the "Paragraph Style Options" panel. The id for the appropriate scriptMenuAction is 8481.
try{
app.scriptMenuActions.itemByID(8481).invoke();
}catch(e){$.writeln(e.message)};
But unfortunately this would throw an error. Something like this:
(Error message in German:)
"Mit der angeforderten Aktion wurde ein asynchrones, modales Dialogfeld geöffnet,
für das eine Vorschau erstellt werden kann.
Dies ist nicht mit der Skriptarchitektur kompatibel, daher wurde das Dialogfeld
mit der Standardschaltfläche automatisch verworfen."
(Roughly translated to English:)
"An asynchronous, modal dialog box was opened by this action.
A preview can be created with that dialog box.
This is not compatible with the scripting architecture, therefore the dialog box
with the standard button was automatically rejected."
So I see no chance to do what you want.
(Tested with inDesign CS5.5 on Mac OSX 10.6.8)
Don't know, if that behavior has changed for more recent versions of inDesign…
Uwe

Similar Messages

  • Get UID of Paragraph Style that is edited in Paragraph Style Options dialog

    Paragraph styles can be edited in the "Paragraph Style Options" selectable dialog. I am adding an addition style option panel to this dialog. How can I retrieve the UID of the paragraph style that is currently being displayed in this "Paragraph Style Options" dialog? Can this be obtained in the dialog controller of the additional style option panel (I need to obtain this UID to display and store additional style data)?

    Thanks Dirk
    One more thing, continuing on the previous theme. I got the paragraph or character style using something like this (thanks to you)
    InterfacePtr<IWidgetParent> iWidgetParent(this, IID_IWIDGETPARENT);
    if (!iWidgetParent) break;
    InterfacePtr<ISelectableDialogSwitcher> iSelectableDialog((ISelectableDialogSwitcher*)iWidgetParent->QueryParentFor(IID_ISELECTABLEDIALOGSWITCHER));
    if (!iSelectableDialog) break;
    InterfacePtr<IUIDData> iData(iSelectableDialog, IID_IUIDDATA);
    if(iData->GetItemUID()==0) break;
    InterfacePtr<ITextAttributes> textAttributes(iData->GetItemUID(),iData->GetItemDataBase(),IID_ITEXTATTRIBUTES);
    if(!textAttributes) break;
    However when I am trying to get text attributes for Find Change dialog, the IID_IUIDDATA == 0 and therefor returns nothing when trying to get attributes.
    Now if I try this code
    InterfacePtr<ITextAttributes> textAttributes((ITextAttributes*)iWidgetParent->QueryParentFor(IID_ISAVEDTEXTATTRIBUTES));
    then I get the attributes for the find text or change text even when I am using grep dialog.
    Theoretically I could get attributes from IFindChangeOptions interface, and I could figure if grep or text is enabled using GetGrepFlag function, but how do I know if I'm in find or change. It should be easy since they are different bosses like you mentioned previously, but I cant figure how to find that info in dialog.
    Thanks

  • HT2479 iMovie stays on desktop but does not want to open up so I can use it, any thoughts??

    iMovie stays on desktop but does not want to open up so I can use it, any thoughts??

    Hi,
    I had this problem. Solution was to move mouse over taskbar icon. When Firefox displays small icon right click this and select maximise window !!! I think somehow Firefox got minimised to the taskbar and would not reopen as a full window. i.e it when you clicked the taskbar icon it would pop up and then pop back down to the taskbar again !!
    Hope this helps.

  • Which paragraph style options break TOC generation?

    Hi,
    I've had a problem with generating tables of contents in InDesign CS3 and which persists in InDesign CS4.
    After much experimenting I've learned that there's something in the paragraph style settings for the headings I want to include in a TOC that prevent them being included. The generated TOC in CS4 is empty. In CS3 it contains two empty paragraphs.
    When I try to create a TOC on the same text, but no style applied to the headings it works.
    So can anyone advise if there's any paragraph style settings (e.g. to do with line and page breaking) that will prevent that paragraph appearing in a TOC?
    Any advice much appreciated!
    Thanks,
    Stu

    Hi,
    Correction to my previous message: I was wrong about the TOC generation working for unformatted headings, it doesn't work then either.
    Would some InDesign expert out there be willing to receive a cut-down version of this document to see if they can successfully create a TOC for it? That's probably the easiest way to learn what I'm doing wrong.
    Thanks,
    Stu

  • I cannot find the "Add Paragraph Style" option in the TOC inspector

    The Help Center under "Customize the table of contents" indicates that I can add a paragraph style to the TOC items list. However, when I follow the instructions on the help screen and click the "Add" pop-up menu, I can only add back one of the sections I have already removed. There is no option to add a paragraph style.

    For that choice to show, I believe it depends on which template (with which TOC type) you've selected. Some provide it and some don't.
    Create a new book and choose the 'Modern Type' template, then complete the same steps and you should be able to see what Help is referring to.

  • InDesign CS6: How do I set Character Color to Unspecified/Undefined in the Paragraph Style Options?

    Is there a way to create a Paragraph Style that leaves the Character Color unspecified?  I have a bunch of existing text frames containing characters of various colors. When I apply the Paragraph Style, the text is changed to black. I want the text color to remain unchanged; that is, I want the Paragraph Style's Character Color attribute undefined.  How do I do this?
    All of the text frames in this case have their Character Style set to [None]. The text colors were applied individually, not via the use of Character Styles.

    I have a bunch of existing text frames containing characters of various colors. When I apply the Paragraph Style, the text is changed to black. I want the text color to remain unchanged
    If you apply the color to the characters via Character styles then the colors will be unchanged when the Paragraph style is applied. Like this:

  • Do you want to open or save option disabling

    Hi friends
    i have pdf which is placed it in mime and i used file download UI element for opening it .
    Now my requirement is when i click on the link it opens pdf asking Do you want to open or save file ,but i should not allow this dialog window for the end users So can any body please let me know how to disable this dialog window
    Thanks in advance

    I checked that also but i could not find any changes it is having the properties of auto,allow in place and save

  • Change case in paragraph style option

    I use different types of headng styles in my document. I use ALL CAPS for my first level heading and TITLE CASE for second level heading and SENTENCE FOR third level heading. It will be helpful if I have change case options in paragraph sytle
    Upper case
    Lowera case
    Title case
    Sentence case
    in paragaph style just like "BASIC CHARACTER FORMATS".
    Thanks
    Regards
    arul

    I think that's the wrong paradigm.
    Styles are for changing the look of text -- not the content. the way change case works (in every app I've ever seen) is by changing the encoding of the text.
    FWIW. I have a utility in my "Style Utilities" which can change case based on style: http://in-tools.com/products/plugins/style-utilities/
    Harbs

  • Want to open itunes on my new 'used' g4

    how to get my new to me macbook pro to recognize quicktime, and then itunes

    QuickTime is a required component of OS X so you already have it. Run Software Update to ensure you have updated versions of all your software.
    Download iTunes here: http://www.apple.com/itunes/download/

  • Quick paragraph style application transformation ... or reverse engineering a document the hard way?

    Hi everyone,
    I'm using Indesign 5.5 for Windows and have inherited a technical document with no styling applied (not even text threads or auto-pagination), but all the fonts are in the correct sizes and colours. So it looks ok in print, but trying to actually do anything with it is a nightmare.  For obvious reasons I WANT to apply paragraph styles to the document so I can generate a new auto-updating TOC, maintain and add to it, and all the other good stuff that means.
    My question is this - is my only choice to go through page by page and apply new styles (matching their current appearence) to every different heading and bullet point, or is there a nice easy way (or script) that i can use to whizz through the document for me, neatly applying a new style to each different font variety or element it finds (not altering their appearence) and leaving me with a nice list of styles I can rename (then take all the credit for? ha!) Basically take a document that's already been put together wrong, and make it right? I think this might've been imported into InDesign from something like Quark, hence the state it's in, but I don't have access to anything but this version. Any help you could offer would be great.  Oh, and if (as I suspect) my only option is indeed to apply all the styles manually one line at a time, then feel free to point and laugh, I doubtless deserve it.
    Thanks!
    Phil

    If you need to reproduce the existing page layouts, I'd suggest you read up more on what paragraph styles can do, before annihilating whatever layout and flow behaviors have been stuck on the content. For example, if level "X" headings always start at the top of a text frame, or top of a page, or even top of a right page, or top of a left page, a paragraph style property can do this. So you'd want to create and apply a paragraph that does this to those paragraphs before you thread text frames; the top of <whatever> frame paragraph property will keep the paragraphs in place.
    It is possible to create paragraph styles with properties that behave crazily when they do what you define for them. For example, you can define a paragraph style that sets the style of the paragraph that's created when you press Enter/Return. You can also use the smartness built into the Next Style property. If a paragraph style, say Head1 is defined to create a new paragraph when you press Enter/Return, it can also apply its next style property to the paragraph follows Head1 in the same text selection. So, if you select a paragraph that's supposed to become Head1 (which defines its next style as BodyAfterHead1) and also select the paragraph that follows it,  and then hold down Ctrl+Click on the Head1 style's name in the Paragraph Styles panel, Apply "Head1" then Next Style appears. If BodyAfterHead1 defines Body as its next style, and more than two consecutive paragraphs are selected, Head1 will be applied to the first paragraph, BodyAfterHead1 will be applied to the second paragraph, and Body will be applied to the third and following paragraphs.
    So, you'll be investing in setting up the Next Style property for paragraph styles, and selecting as many consecutive paragraphs as needed for applying a pattern of styles that agrees with your next style definitions. Each time you use this feature, you're collecting benefits from your investment.
    If you need to reproduce the look of the layout on some number of pages, you could export to PDF and use a script to efficiently place each page of a multi-page PDF on a "PDF layer" you create, that appears on every document page in the ID document, lock and move the layer below the active document layer, and use it as a placement underlay.
    Search Google for terms like "InDesign apply style and next style," "InDesign place multipage pdf script," "InDesign installing and using scripts," "InDesign paragraph style keep options," and "InDesign start paragraph options," without quotes, for informative links to anywhere on the Web, as well as on these Adobe forums. To limit the searches to Adobe forums only, include "forums.adobe" without quotes in the search query.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Why won't paragraph styles change?

    I opened a document from a few months ago and updated paragraph styles to a different font. However when I click on text and assign a style it has no effect. If I go to "basic paragraph" and click on that while holding down the option and shift keys, then it seems to remove whatever is stuck and then I can assign the style. But if I have to do this with every part of this 70 page document it is going to take a long time. Is there some way to make this go easier?
    The other thing is that I assigned keys to each style and I notice that even though I changed the paragraph styles to a different font the keys say they are assigned to the prior font, so maybe this is part of the problem.
    Suggestions very welcome.

    No.
    Break Link with Style does exactly what is reads.
    If you have a paragraph using the 'Body' style and you use the Break Link with Style option, then the paragraph retains the current appearance and settings, but is no longer associated with the 'Body' style. So, when and if you change the 'Body' style, that paragraph will not change.
    Clear Overrides reverts manual styling to the applied Paragraph Style. So, using the example above, assume your 'Body' style uses Myriad Pro Bold, and you manually change the font in a paragraph to Myriad Pro Black, that is an override. Selecting "Clear Overrides" reverts the font back to Myriad Pro Bold.
    Clear Overrides does not appear in the palette menu for character styles.
    Your text cursor needs to be active within the paragraph (or some of the text must be selected with the text tool) in order for the contextual menu to show the Clear Overrides option.
    Another option is to check the Paragraph Style Palette with the text cursor active in a paragraph. If there is any paragraph style applied, then it should appear bolded in the list. If there are any overrides applied, there should be a
    + at the end of the style name. You can then Control Click on the Paragraph style to see a list of options such as:
    Apply Style
    Apply Style, Clear Overrides
    Apply Style, Clear Character Styles
    Apply Style, Clear All
    HTH
    -mt

  • Trouble with CS5 InDesign Paragraph Styles

    I am creating a new template. I want one style to be "TOC Title", and another to be "TOC Level 1". All my concerns center around the Paragraph Style Options window (Type > Paragraph Styles > Create New Style >(double-click style to modify)  )
    1. No matter what I do, if I stipulate that "TOC Level 1" has leading (Tabs option, enter a "." or period in the Leader box), then InDesign does this for ALL my paragraph styles.
    For the record, under the General option, my "Based On" box is set to "[No Paragraph Style]" for both paragraph styles.
    So either I have to live with the TOC title having leading on it, or the TOC Level 1 having none, and in either case having to do something manually to the TOC everytime I use the template.
    How can I fix this so that TOC Title has no Leader and TOC Level 1 has a Leader of "." ?
    2. How can I set my TOC Title paragraph style so that it centers on the page?
    Edit: Two days later and no reply - I would have gladly supplied more information if I did not make the issue clear enough, and I would have even appreciated a simple "Sorry, I don't know." Since it is highly improbable that nobody out there knows ANYTHING about Paragraph Style tabs in Adobe CS5 InDesign, I must conclude that my issue is simply not "in" enough to be considered worthy of attention from the unnamed scores of elitists which must run this forum.

    I think the only way I'm going to be able to understand the problem is to see a sample file. Please make a sample, even if it has nothing more than your style definitions that are failing, and post a link to it here.

  • Problem Saving Paragraph Styles

    For some reason Pages does not want to save paragraph styles across all documents. when I create a new one in one document and save the document the style is saved but only in that document. when I create a new document the style I just made isnt avaliable. Is there a preference I can check to make sure all styles are saved across all documents I make in the future?

    Welcome to Apple Discussions
    Styles are specific to each document. You need to create your own default template. Set up your document with the margins, headers, etc. as you'd like. Redefine all of the paragraph & character styles to have your desired font.
    While you're at it, you might want to set default styles for all objects, text boxes, tables, paragraph styles, etc. Start with a blank document & insert an object. Change the color, wrap, etc. to your choosing & then go to Format > Advanced > Define Default Shape Style then delete the object. Repeat with an image/photo, a text box & a table.
    Now, save this as a template then, in Pages > Preferences, select this template as the default for new documents. All of your new documents will have these settings for inserted objects, images & tables. Unfortunately, the settings won't apply to any other templates or "foreign" documents you open with Pages.

  • [Basic Paragraph] style behaviour upon copy/paste

    Hi,
    we just get started changing from Quark to InDesign, and our lead layout-producer is not so crazy about style sheets, so everything she creates is using the [Basic Paragraph] Style.
    A by her created libary now contains groups of text objects in Basic Paragraph with format changes +
    When I use these groups, or copy and paste from another document, why does InDesign keep the changes like fontsize or -color, but does change the font?
    My basic paragraph does use another font, so its quite annoying INDD keep the changes, but keep change the font.
    What can I do to prevent INDD from changing the font?

    So, i made this beauuutiful thingy for a test. It looks disgusting, i know. The point is that it uses 4 fonts and different modifications.
    If I get you right, to prepare a "good" document, our layout-producer should clogg our documents with different paragraph-styles not to use the Basic? Sure, she can convert it into paths, but different collegues have to translate this stuff later so that isnt an option.
    Maybe she can "design" things like that in Illu, giving us an AI to use.
    I made an irritating discovery:
    As I built this thing with Futura as my Basicparagraph-font, i dragged it into a libary, closed every doc to change my default-paragraph-style to another font to see what happens. I set up a empty doc and dragged it back in again – no changes at all. I was surprised. Its in the basic, it has a +, and if i click on basic it changes to GillSans, if i alt+click the modifications (like the colors) turn to black… – this is what i was looking for :-)
    But why with my other test-object. Im nearly in closing time here, so i will upload an image tomorrow, but the only variable that haved changed to my second try minutes ago:
    – the objects were converted using Q2ID (Markzware)
    – the group just contained one (but another) font
    Maybe theres the problem somewhere.

  • Selecting a paragraph style

    Hi All,
    I am working on InDesign CS3, I am looking for an API/Command using which I could select a paragraph style.
    I am elaborating my problem as follows
    In paragraph style palette we have a default paragraph style called "Basic paragraph"
    I have created another paragraph style say "Paragraph Style 1"
    Now I want to select "Paragraph Style 1" as a default style for the newly created story
    If anybody knows about this then please help me
    Thanks and Regards,
    Alam

    We can any style to default style by processing kDefaultTextStyleCmdBoss

Maybe you are looking for