[Framers] script library/catalog - not "sticky" ?

2016-06-21 Thread Monique Semp
Hello, Framers,

It seems that every time I close and restart FrameMaker, the scripts that I’ve 
added to the Script Library/Catalog (not sure if it’s a “library” or a 
“catalog”; the menus/labels seem inconsistent) disappear, and I have to add 
them again.

I don’t want these scripts to be Autorun, and there’s seemingly no way to get 
them to be “registered”.

So is there a way to make these “Favorites” stay in the favorites list so I 
don’t have to add them every time?!

Thanks,
-Monique
___

This message is from the Framers mailing list

Send messages to framers@lists.frameusers.com
Visit the list's homepage at  http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at 
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listad...@frameusers.com

Re: [Framers] create custom keyboard shortcut - for ES script ?

2016-06-21 Thread Monique Semp
> Theoretically an ExtendScript can define it's own keyboard shortcuts - but 
> this mechanism does not work at all (see end of line 04 hereafter)
01 // --- Menu definition for documents
02 var menuLocation = app.GetNamedMenu("FormatMenu");
03 var FMcalcMenu  = menuLocation.DefineAndAddMenu("!FMcalcMain", 
oMenus.MenuMain);
04 FMcalcMenu.DefineAndAddCommand(1,"docFMcalcDocu", oMenus.MenuDocu, "\!qd");

Hi Klaus,

It turned out that the script I’m working with *does* define its own shortcut, 
in a local setUpMenus() function that is called before the script’s main() 
function. Among other things, the setUpMenus() function includes the following 
code to add the script to FrameMaker’s File > Import submenu:

01var cmd = DefineCommand(1, “”, “”, “”);
02var importMenu = app.GetNamedMenu(“ImportMenu”);
03var bookImportMenu = app.GetNamedMenu(“BookImportMenu”);
04importMenu.AddCommandToMenu(cmd);
05bookImportMenu.AddCommandToMenu(cmd);
06UpdateMenus();

Initially there was nothing in the  argument (just empty quotes), so 
I was able to add the keyboard shortcut that I wanted, and everything works.

That said, there is an oddity that you allude to in your customisation doc: you 
can use any two of the Ctrl, Alt, Shift modifiers, but not all three. I often 
use all three to make sure that my custom keyboard shortcuts (no matter which 
app I’m working with) don’t interfere with standard shortcuts. But I couldn’t 
make it work. Your doc says, "A key group should not use more than two modifier 
keys, because humans have only two hands …". Yes, but... :-). So I’m assuming 
that this is actually a limitation imposed by FrameMaker, not just your advice 
and voice of experience?

This did the trick for what I need, so I’m sure I’ll put this aside for the 
time being. But I certainly do want to figure out how to get a keyboard 
shortcut working for plugins that are provided via DLL, which of course I 
cannot edit like I can an ExtendScript that’s provided as source code. So 
sometime in the future, I’ll be checking out the scripts that Winifried Reng 
pointed us to, http://4xscripts.com/scripts/free-scripts.html (and putting the 
text through Google Translate).

Thanks for all the details; I’m looking forward to figuring it out!
-Monique
___

This message is from the Framers mailing list

Send messages to framers@lists.frameusers.com
Visit the list's homepage at  http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at 
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listad...@frameusers.com

Re: [Framers] create custom keyboard shortcut - for ES script ?

2016-06-21 Thread Reng, Dr. Winfried
Hi Monique,

I think that these scripts from Klaus Göbel do what you want:
4X_MenuMaker
4X_MenuConfigurator

You can find them here:
http://4xscripts.com/scripts/free-scripts.html

Best regards

Winfried

-Original Message-
From: Framers [mailto:framers-bounces+wreng=tycoint@lists.frameusers.com] 
On Behalf Of Monique Semp
Sent: Monday, June 20, 2016 6:15 PM
To: framers@lists.frameusers.com
Subject: [Framers] create custom keyboard shortcut - for ES script ?

Hello, Framers,

I’ve recently purchased several ExtendScripts, and would very much like to 
create keyboard shortcuts for them, but I’m stumped. If there’s a simple 
few-step procedure, please share. If it’s complex, perhaps there’s some info 
online that you could point me to as a starting point?

I’m using unstructured FrameMaker 2015 (FrameMaker 13) on Windows 7. The 
specific script/utility I’m working with at the moment is Rick Quatro’s 
ImportFormatsSpecial, but I’ve got a number of other ExtendScripts and (Silicon 
Prairie) plugins that would be much easier to use if there were keyboard 
shortcuts.

I found the general process in Klaus Daube’s doc for FrameMaker 1, 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.daube.ch_docu_files_etb-2Dcustomising-2Dfm.pdf=CwIGaQ=0YGvTs3tT-VMy8_v51yLDw=pdk93NJbIWwQmLZh1EZCoC4wFNMwWj1dp-sJbkswCLE=nBSVplXIqqcZPm3aKSjeHF1K2o88wQoQ82ZOHlf2Afs=kycwj9dCptLUMw5zY5mq4hqB9OGqwWA-mDfSHtorC4U=
 , on pages 18-16 and  18-20 (these aren’t page ranges, but pages 16 and 20, in 
chapter 18). And I found his updated doc for FrameMaker 12/13, 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.daube.ch_docu_files_etb-2Dcustomising-2Dfm12.pdf=CwIGaQ=0YGvTs3tT-VMy8_v51yLDw=pdk93NJbIWwQmLZh1EZCoC4wFNMwWj1dp-sJbkswCLE=nBSVplXIqqcZPm3aKSjeHF1K2o88wQoQ82ZOHlf2Afs=QA5claGnhosCtDlo1QpxGwoBRJ6Nd3BplesMqKkWLFk=
 , which explains the new location for the CFG files for the different views. 
(I’m not quite clear on “views” vs. “workspaces”...)



And when I create a customui.cfg, how do I ensure that it doesn’t interfere 
with whatever is adding the ExtendScripts and plugins to the menu in the first 
place? I haven’t figured out what makes these things appear in the FrameMaker 
menu...



I’m sure that this is very easy to do, and the examples in Klaus Daube’s doc 
support that. But the hard part is figuring out just which files to revise 
and/or copy-and-adapt!



Thanks very much,

-Monique

___

This message is from the Framers mailing list

Send messages to framers@lists.frameusers.com
Visit the list's homepage at  
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.frameusers.com=CwIGaQ=0YGvTs3tT-VMy8_v51yLDw=pdk93NJbIWwQmLZh1EZCoC4wFNMwWj1dp-sJbkswCLE=nBSVplXIqqcZPm3aKSjeHF1K2o88wQoQ82ZOHlf2Afs=pLtXRcDr8qg-NN6S2GBPU6QUyMXxXWr6ZuTa2OON3K8=
Archives located at 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_framers-2540lists.frameusers.com_=CwIGaQ=0YGvTs3tT-VMy8_v51yLDw=pdk93NJbIWwQmLZh1EZCoC4wFNMwWj1dp-sJbkswCLE=nBSVplXIqqcZPm3aKSjeHF1K2o88wQoQ82ZOHlf2Afs=Y8PI7mfUCbFCoXcePfF_ryAPdyeuvGvznzVE9cETFjQ=
Subscribe and unsubscribe at 
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.frameusers.com_listinfo.cgi_framers-2Dframeusers.com=CwIGaQ=0YGvTs3tT-VMy8_v51yLDw=pdk93NJbIWwQmLZh1EZCoC4wFNMwWj1dp-sJbkswCLE=nBSVplXIqqcZPm3aKSjeHF1K2o88wQoQ82ZOHlf2Afs=F_nWAkYinkFCdt9mSqONeqSnDFtrCC7MYE6LEUg2emA=
Send administrative questions to listad...@frameusers.com



This e-mail contains privileged and confidential information intended for the 
use of the addressees named above. If you are not the intended recipient of 
this e-mail, you are hereby notified that you must not disseminate, copy or 
take any action in respect of any information contained in it. If you have 
received this e-mail in error, please notify the sender immediately by e-mail 
and immediately destroy this e-mail and its attachments.
___

This message is from the Framers mailing list

Send messages to framers@lists.frameusers.com
Visit the list's homepage at  http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at 
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listad...@frameusers.com

Re: [Framers] create custom keyboard shortcut - for ES script ?

2016-06-21 Thread Klaus Daube
   On 20 Jun 2016 at 9:15, Monique Semp wrote:

   > And I found his updated doc for FrameMaker 12/13,

   > http://www.daube.ch/docu/files/etb-customising-fm12.pdf, which
   explains

   > the new location for the CFG files for the different views. (I(TM)m
   not

   > quite clear on oeviews vs. oeworkspaces...)

   Monique, The descripten under heading Terminology confuses You and me
   (because it is somewhat ambigous):

 * A view groups elements of a workspace.
 * A workspace is a saved set of frequently used panels/toolbarsin a
   desired arrangement for repeated use.

   Saving a workspace also saves the current view (e.g. Author view). The
   file location of a workspace defintion  (e.g.
   %appdata%\Adobe\FrameMaker\13\WorkSpaces\UnStructured\WYSIWYGView\Autho
   ring.cfws) reveals that the workspace is saved 'below' the view
   folders... So imho the structure is somewhat screwy.

   > And when I create a customui.cfg, how do I ensure that it doesn(TM)t

   > interfere with whatever is adding the ExtendScripts and plugins to
   the

   > menu in the first place? I haven(TM)t figured out what makes these
   things

   > appear in the FrameMaker menu...

   My experiments (to be able to write that guide on customisation) show
   that after the intitialision as lined out on page 18 of the
   customisation guide, next steps are:

   - intitialise the API clients (e.g. FrameScript, ExtendScript,
   dll-plugins)

   - run the automatically started scripts (for ExtendScript they are
   located in %appdata%\Adobe\FrameMaker\13\Startup)

   All of these can add/remove menu-items and/or keyboard shortcuts.

   [If Klaus Müller or another expert reads this and disagrees, please let
   me know to write it down - I have not found real information on this
   subject]

   > I(TM)m sure that this is very easy to do, and the examples in Klaus

   > Daube(TM)s doc support that. But the hard part is figuring out just
   which

   > files to revise and/or copy-and-adapt!

   Theoretically an ExtendScript can define it's own keyboard shortcuts -
   but this mechanism does not work at all (see end of line 04 hereafter)

   01 // --- Menu definition for documents

   02 var menuLocation = app.GetNamedMenu("FormatMenu");

   03 var FMcalcMenu  = menuLocation.DefineAndAddMenu("!FMcalcMain",
   oMenus.MenuMain);

   04 FMcalcMenu.DefineAndAddCommand(1,"docFMcalcDocu", oMenus.MenuDocu,
   "\!qd");

   So the only method would be to define a shortcut to an ES script via
   the cfg file - but this does not work either: at the time of analysing
   the cfg file the command referring to the script is not known (see
   sequence of intitialisation)... So there is knot in the system.

   [I repeat here my caveat: Any experts are welcome to correct my view -
   because I feel uncertain about this subject]

   Monique, I hope not to have confused You further...

   Klaus Daube

   ~~~
   ~~

   Klaus Daube Phone:  +41-44-381 37 77

   Schäracher 11   Mail:   kl...@daube.ch

   CH-8053 Zürich  Web:www.daube.ch

   --

   ~!
___

This message is from the Framers mailing list

Send messages to framers@lists.frameusers.com
Visit the list's homepage at  http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at 
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listad...@frameusers.com