🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2091

Re: Access Standard InDesign Menu

#2091
From: matt_p_stone
Date: Thu, 08 Jan 2009 15:35
11 lines
1476 bytes
Update:

Last night I figured out how to invoke menu actions by name using the key string. This code returns the key string then I can use it to invoke an action. But this doesn't work for all menu items. I ran the script to find all menu actions by name so that I could use this one to find the key string. But, "ImportXML..." returns no results, just a blank box. As do several others.

Any ideas/help, please?

var myString = "";
var myMenuAction = app.menuActions.item("Open...");
var myKeyStrings = app.findKeyStrings(myMenuAction.name);
if(myKeyStrings.constructor.name == "Array"){
for(var myCounter = 0; myCounter < myKeyStrings.length; myCounter ++){ myString += myKeyStrings[myCounter] + "\r"; } } else{ myString = myKeyStrings; } alert(myString);
Technical Details
Message-ID: <59b773b7.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.germany.com!newsfeed.bit.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing
References: <59b773b7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c4b48153d65cf6b0
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: matt_p_stone@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Access Standard InDesign Menu
Message-ID: <59b773b7.2@webcrossing.la2eafNXanI>
Date: Thu, 8 Jan 2009 07:35:06 -0800
References: <59b773b7.-1@webcrossing.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.germany.com!newsfeed.bit.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing