🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1545

Re: How to access the third party plugin

#1545
From: AndreaYost
Date: Thu, 05 Feb 2009 20:11
16 lines
1741 bytes
Hello, I'm not a very accomplished JavaScripter, but have found that you can access some InMath at least in CS3. I only needed to be able to refresh the InMath styles from a script.

If you run this script...

app.menuActions.everyItem().name;

it will return the names of all the available menu actions. The list is quite long, but it includes some of the InMath actions. At least the ones you can assign keyboard shortcuts to. In my case, I needed to refresh the InMath styles from a script. So I found the name of the InMath menu action that was returned from the above script (Refresh All InMath Expressions) and was able to make a script that refreshed the styles like this.

app.menuActions.itemByName("Refresh All InMath Expressions").invoke();

However, I'm trying to figure out how to do this in CS2 because my client is still using CS2 and can't find the CS2 version of menuActions.

I think I read your other post about the find/change fillColor bug. I was stuck in the same place and now have it working thanks to the posted help. I was working on a script that would fix fractions based on their colors.

Hope this helps.
Andrea
Technical Details
Message-ID: <59b7c3b1.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7c3b1.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,25515153bcbc1274
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: AndreaYost@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: How to access the third party plugin
Message-ID: <59b7c3b1.1@webcrossing.la2eafNXanI>
Date: Thu, 5 Feb 2009 12:11:44 -0800
References: <59b7c3b1.-1@webcrossing.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit