Selecting InMath Styles

Hi All,
I have InMath plugin(third party) for Indesign CS3. when I select Windows->InMathStyle menu opens a panel which has InMathSyles and InMathExpressionWizard tabbed windows. Now I want to select a style from the InMathStyles tab using apple script.How to go about it?
Thanks
Sakthi

You have the header file from inmath. It must contains something like this:
#define kTPPrefixNumber 0x89ABC      // Prefix number of the plug-in issued by Adobe
DECLARE_PMID(kInterfaceIDSpace, IID_ITHIRDPARTY, kTPPrefixNumber + 12)   //
class IThirdParty : public IPMUnknown
     public:
     enum { kDefaultIID = IID_ITHIRDPARTY };
     virtual bool16 IsThirdPartyEnabled() =0;
To use it in your code obtain an interface to object. You need to know where to look for it. Here is an example where it is on the Application boss:
#include "../ThirdParty.h"
InterfacePtr<IApplication> theApp(gSession->QueryApplication());
InterfacePtr< IThirdParty > iThirdParty(theApp, UseDefaultIID());
if (iThirdParty != nil) {
     // Safe to call functions on the Interface ...
     if (iThirdParty-> IsThirdPartyEnabled()) {

Similar Messages

  • How to access third party plugin (inmath styles) in indesign SDK

    Hi All,
    I would like to know that how can we access third party plugins like inmath styles in indesign SDK using VC++. And also I got C++ header file from the third party to interface their style into indesign. Please help me how can we do that.
    Thanks
    Saravanan Rethinam

    You have the header file from inmath. It must contains something like this:
    #define kTPPrefixNumber 0x89ABC      // Prefix number of the plug-in issued by Adobe
    DECLARE_PMID(kInterfaceIDSpace, IID_ITHIRDPARTY, kTPPrefixNumber + 12)   //
    class IThirdParty : public IPMUnknown
         public:
         enum { kDefaultIID = IID_ITHIRDPARTY };
         virtual bool16 IsThirdPartyEnabled() =0;
    To use it in your code obtain an interface to object. You need to know where to look for it. Here is an example where it is on the Application boss:
    #include "../ThirdParty.h"
    InterfacePtr<IApplication> theApp(gSession->QueryApplication());
    InterfacePtr< IThirdParty > iThirdParty(theApp, UseDefaultIID());
    if (iThirdParty != nil) {
         // Safe to call functions on the Interface ...
         if (iThirdParty-> IsThirdPartyEnabled()) {

  • Selected TOC style Name

    Hi All,
    Simple question for you...
    How can I alert the selected TOC style name.
    We are creating huge tool. Based on the selection Toc Style, we will process the multiple document.
    For example I want to alert the Toc Style CCC(tick mark) name in this document.
    Trying Code:
    var myTocStyle = app.activeDocument.tocStyles.selectedIndex;
    //~ var myTocStyle = app.activeDocument.tocStyles.item(-2);   //Dont want this concept
    Very urgent request. Please help.
    Thanks
    Beginner_X

    From:
    myStory.storyType
    you can determine that a story is a TOC, but how do you get from there to the TOC Style that was used to create said TOC?
    This was the question that was bugging me back in CS3 days and I see no improvement in the CC object model. Stories don't have an associatedTOCStyle property. But maybe you can get at this by lateral thinking. If a story was created as a TOC then it has certain paragraph styles in it. If the TOC Styles are designed to have unique paragraph styles that identify the TOC Style, then you're home and dry. For example, you could have a ParagraphStyleGroup for each TOC Style and the name of that group could be the same as the name of the corresponding TOC Style.
    Of course, this assumes you have control over the template for the project so that this relationship can be relied on. But given that, you can start with a text selection. Check the applied paragraph style, look at the name of its parent and bingo: there's the name of the TOC Style.
    I'm not sure if this helps in your situation.
    Dave

  • [CS2/CS3 JS] Change case of selected character style

    Dave Saunder's great script http://indesignsecrets.com/downloads/scripts/ChangeCaseOfSelectedStyle.jsx works wonders if you're dealing with paragraph styles.
    I wanted to make it work with character styles. Naively, being a scripting rookie, I just replaced 'paragraph' with 'character' throughout the code.
    I then nearly fell off my chair, because it worked. Thanks, Dave!

    // You need to have a textFrame selected
    var myFrame = app.selection[0];
    var myParaCount = myFrame.paragraphs.length;
    // There must exist a paragraphStyle name L-B
    var myApplyStyle = app.activeDocument.paragraphStyles.item("L-B")
    for (h=0; h < myParaCount; h++){
    var myChar = myFrame.paragraphs.item(h).characters.firstItem();
    // check if first char is "l" and if its applied charstyle name is CharStyleWin
    if (myChar.contents == "l" && myChar.appliedCharacterStyle.name == "CharStyleWin"){
    myFrame.paragraphs.item(h).appliedParagraphStyle = myApplyStyle;
    /* Edited at 11.21 */

  • Color range selection + layer styles

    Hello--
    Help me if you can!
    I have had it on good authority (my photoshop instructor) that color range selection hasn't been working correctly for some time.
    I'm using CS2, version 9.0.2 on an IMac os X version 10.5.8.
    I am often working with multiple layers that are not similar at all.  When I have one layer active and do a color selection, it may also select the color range on inactive layers.  Then, if I do a fill, for example, it may affect areas on other layers that were inadvertantly color selected.  I know there are ways to ask photoshop to perform a function on all layers, but I don't see this as an option or setting with color range selection.  I had started to assume it was sort of like crop, which affects all layers, but when I asked, my teacher says it should only be selecting/affecting the layer that is active. 
    I found I can deal with this by 'closing the eyes' (making non-visible) the other layers...but that is a hassle and sometimes hides exactly what I need to see.
    Then noticed, just lately, that when I use a layer style, it is no longer showing up on my layer palette.  Maybe I don't understand correctly, but I thought any layer style addition would show up on the palette under the name of that layer.  If I happen to remember that a particular layer used a layer style, I can still click on the layer styles icon and alter it, but it isn't displaying on the layer palette any more--so I cannot toggle or discard the effect simply, and it is hard to know why a layer looks the way it does without that information.
    Could be I'm corrupted and need to deinstall/reinstall?  Is there something I'm missing about these functions , or something I accidentally changed?  I would really appreciate any help or information.

    Yes your instructor is wrong, it always selects visible pixels, and always has. You can however create a selection before you go into Color Range, and it will only work within that selection though.
    If you want Color Range to work in precisely the same way as it always did in the old versions you need to make sure that you ..
    • Highlight a non masked layer and
    • Uncheck the somewhat bizarrely entitled "Localised Color Clusters" checkbox
    The changes to Color Range happened a few versions ago, to my memory it was with CS4 .  The main improvement was that they made it more powerful with the capability to produce better more refined selections. They also unfortunately made the daft mistake of making the command work DIFFERENTLY depending on whether you have a masked or a non masked layer selected. This is not very logical really because it just causes confusion, and doesn't really achieve anything constructive in my opinion. No one who knows what they are doing wants to modify an existing mask using Color Range.

  • Selected TabBar Style Change

    Hi, I am using a Tababr in my application and I need to
    specify a particular style for the tabs when a tab is selected. Any
    Ideas? Cant find anything in the docs that allows you to do this.
    Right now it just turns the background to white. I would like to
    change this background color.
    thx, sam

    HI Natash,
         I am using it but its not working. I am using style sheet and below is code I have written.
    TabBar.ApplicationMenus{
    horizontalGap: 0;  
    fontWeight: normal; 
    fontSize: 11; 
    tabStyleName: tabBarTab; 
    firstTabStyleName: tabBarFirstTab; 
    lastTabStyleName: tabBarLastTab; 
    selectedTabTextStyleName: tabBarSelectedTabText; 
    buttonStyleName: ApplicationMenuButtonStyle;
    .tabBarSelectedTabText{
    fillAlphas: 1.0, 1.0, 1.0, 1.0; 
    fillColors: #FFFFFF, #667777, #667777, #667777; 
    color: #111111; 
    fontWeight: normal; 
    borderColor: #0D2B3C; 
    themeColor: #111111; 
    fontStyle: normal; 
    textDecoration: normal; 
    fontFamily: Verdana; 
    fontSize: 11;
    Still on tab click its showing the default white colour.

  • Content Query is always showing bullets in style even when selecting different style

    Hi,
    My content Query webpart is always showing bullet in front of a line. I have made custom xsl styles and it still does it. I have also deleted the bullet style template but they are still there.
    When the bullet style was chosen it bulleted the whole row so that the bullets would be on the text like this:
    I should be having SharePoint OOTB settings for content query and I'm trying to display new discussien entrys and replies around my site collection.
    BR,
    Noora

    Generally template should be like this
    <xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
    <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
    <xsl:with-param name="Title" select="''"/>
    <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="Location">
    <xsl:value-of select="@Location" disable-output-escaping="yes"/>
    </xsl:variable>
    <div class="newsItemContainer">
    <div class="txt">
    <div class="title">
    <h2>
    <a href="{$SafeLinkUrl}" Title="{$DisplayTitle}">
    <xsl:value-of select="substring($DisplayTitle, 0, 15)" disable-output-escaping="yes" />
    <xsl:if test="string-length($Title) &gt;= 15">...</xsl:if>
    </a>
    </h2>
    <span class="Location">
    <xsl:value-of select="$Location" disable-output-escaping="yes"/>
    </span>
    </div>
    </div>
    </div>
    </xsl:template>

  • Selected row style on load

    I have a style for selected rows. When the page loads the
    default row is 0 (correct?), I would like this row to use the
    selected style - which it will do once it is clicked - but not when
    the page first loads. The current page:
    squarehead.myvnc.com/UnitedWay/index.php
    --sb

    Hi Steve,
    I recently added support for a spry:selected attribute to
    handle this case. It's not in the PR 1.1 zip that's currently on
    labs, but if you want to add it yourself, simply look for this line
    in SpryData.js:
    Spry.Utils.addEventListener(node, "click", function(event) {
    Spry.Utils.SelectionManager.select(selectGroupName, node, value);
    }, false);
    and add this right below it:
    if (node.attributes.getNamedItem("spry:selected"))
    Spry.Utils.SelectionManager.select(selectGroupName, node,
    value);
    Then change your markup to do this:
    <ul spry:region="dsPages"
    spry:repeatchildren="dsPages">
    <li spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    onclick="dsPages.setCurrentRow('{ds_RowID}');"
    spry:hover="rowHover" spry:select="rowSelected"
    spry:selected="selected">{title}</li>
    <li spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    onclick="dsPages.setCurrentRow('{ds_RowID}');"
    spry:hover="rowHover"
    spry:select="rowSelected">{title}</li>
    </ul>
    Let me know if that works for you.
    --== Kin ==--

  • Select different style for each border of a rectangle

    Hi,
    I just wanted to have a Rectangle (or some other component) which one must have different style for each of its borders.
    For example I want the top and the right border with a thickness of 2 and others with a thickness of 0 (so we can only see those two borders).
    How can I do it ?
    I tried with stroke (but stroke is for all borders, we can't specify which style for which border).
    Thanks,
    Jeff

    Well it is not clear what he is looking for just rect or a component with specific border. I havnt used flex 4 so i am not sure how to get it working for that
    , but i am sure it will work on the same lines.
    I have also given another option to create a it using lineTo() and moveTo().But this should only be used if this rect is not going to be used as a container.
    I think i should elaborate...
    Create a custom component using UIComponent. In updateDisplayList() after super.updateDisplayList() call a method say drawRect(). In this drawRect() use lineTo() and moveTo() to draw the rectangle. you would have to use the component's height and width to draw the rect.
    Let me know if you need more clearification...

  • 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

  • Easy visual way for selecting styles.

    Sometimes it's difficult to select a style name from drop down menu especially if the menu is long. So I suggest new feature which represent a semi eye dropper tool putted beside any drop down menu for any style (Character, Paragraph, Cell, Table, Object). So the user can select this tool and click on any instances of intended style like this:

    I don't think this feature has been existed yet, also in the newest InDesign version.

  • I am trying to make a second website in iweb, I click 'new site' and select the site style, but it keeps opening my existing website.  Any ideas?

    I am trying to make a second website in iWeb.  I have clicked 'new site' and then selected a style for the website, but then my existing website opens instead of a new one.  Any ideas how to fix this?

    Do you not get a new site folder at the left under your existing site?
    OT

  • GUI scripting-select menu item in Mail's Styles popupbutton

    Hi,
    The following script complies without returning an error.
    In Mail, with a new message window displayed, the Styles sheet displayed (select Format>Style>Styles...), and the Favorite Styles radio button selected, the script below returns an error when it gets to the line "click pop up button item 'Bold'" (the menu does contain an item "Bold!").
    I'd prefer to select the menu item by name rather than by using keystrokes in the script because I will be adding styles to the Styles menu, which will result in changes in the numbering of items in that menu.
    Could someone please explain to me how to accomplish this?
    Thanks in advance!
    tell application "System Events"
    tell application process "Mail"
    tell first window
    tell first sheet
    tell first radio group
    tell radio button 2
    click
    end tell
    end tell
    tell pop up button 1
    click
    click pop up button item "Bold"
    end tell
    end tell
    end tell
    end tell
    end tell

    When you click the pop up button, the result is a menu, so you will need to click an item of that menu - for example:
    tell pop up button 1
          click
          click menu item "Bold" of menu 1
    end tell

  • How to apply inmath character style to fraction values

    Hi
    I try to apply inmath style to fraction values in indesign file.
    My code here:
    app.findGrepPreferences = NothingEnum.nothing;
                   app.changeGrepPreferences = NothingEnum.nothing;
                   app.findGrepPreferences.findWhat = myText;
                   app.changeGrepPreferences.appliedCharacterStyle = "Fraction Answers";
       app.changeGrep();             
    But it throws error "Invalid value for set property 'appliedCharacterStyle'
    Thanks
    Sangeetha

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • Import word files in InDesign but only Form Text or selected styles

    Hi Guys,
    I have this magazine I design a few times a year and the articles are sent to me as word-files with tables they have to fill in in order to know who the author is, what the title will be etc.
    I would like to find a way to easily import the content of their articles etc. in Indesign and I found out that importing Word files is simple as goodbye. Me happy!
    But now I constantly have to copy-paste their article text out of the table and paste it elsewhere in the InDesign file, so I thought: isn't there a possibility to, while importing the word file, select what styles should be imported (so that the instructions I put in the template for their word articles for instance won't be put into the InDesign file but only the forms they fill in) or can I setup the importing of it to only import the form field text (if the word file would be set up as a form with protected items fields they can fill in?).
    Many thanks!
    Bob    

    I am using indesign CS2 and i'm trying to import a Word document into a new chapter for a book i'm laying out. it's about 30 pages, but there are at least 80 foot notes. i'm able to get about 1/2 of the document with the footnotes to flow correctly, then EVERYTHING disappears. the only way i've been able to get the remaining text to appear is by adding characters to the text. i'll hit "vvvvvvvvvvvv" a bunch of times and "magically" a little chunk of text and it's footnotes appears. then the ole disappearing act happens. so i do it again. i'm able to get all the text to appear finally, but when i delete the "vvvvvvvvvv" from the places i inserted them, the text disappears again. i have no idea why this is happening or how to fix it. any ideas?
    thanks so much,
    travis

Maybe you are looking for

  • DocumentSplitter and memory

    Regarding the DocumentSplitter class that allows for the SAX parsing of large XML documents. Is there a way to free the memory of each of the "temporary" XMLDocuments that get created? I know there's a XMLNodeCover.freeDocument(int id) method in the

  • Kernal panic when shutting down

    I've had 3 kernal panics in the past week when shutting down my macbook pro. Its a mid 2012 macbook pro with mountain lion. Here is the report log [which is the same for all 3 panics] panic(cpu 1 caller 0xffffff802ceb7b95): Kernel trap at 0xffffff802

  • GL account posting when billing doc saved

    Hi to all,               Please make sure the term. How GL account posting when billing document saved or it release to accounting? Thanks.

  • Column Datatype modify

    Hi, How can i modify a column datatype varchar2(100) into blob in a table. Regards, Fame

  • I have just installed 10.8.3 and find heaps of icons on launchpad I cant use???

    What is happening on launchpad with icons of a Micrsoft type with red vertical lines