Script to mimic a keyboard shortcut?

Hello

I would like to run a script that will mimic a hotkey - (Cmd, Alt, Shift, L)

Is - it possible, and if so, can someone please point me in the right direction.

Thank you all in advance

I published the action handler code to do that yo said that it did not work.  Did you activate the dialog box and use the function?

Here, I made the change for you. You can also use it as the saveAlpha("");

function saveAlpha (alphaName) {}

var idDplc = charIDToTypeID ("Dplc");

var desc27 = new ActionDescriptor();

var idnull = charIDToTypeID ("null");

var ref11 = new ActionReference();

var idChnl = charIDToTypeID ('channel');

var idfsel = charIDToTypeID ("FSC");

Ref11.putProperty (idChnl, idfsel);

desc27.putReference (idnull, ref11);

var idNm = charIDToTypeID ("Nm");

desc27.putString (idNm, alphaName);

try {}

executeAction (idDplc, desc27, DialogModes.ALL);

}

{catch (e)}

}

saveAlpha ("change name");

Tags: Photoshop

Similar Questions

  • Added keyboard shortcuts for menu items created by the script. Is this possible?

    Hi all

    I wanted to create a custom script menu and assign (on the numeric keypad) shortcuts to the menu items so that I could run a script with small changes rather than change a few (currently seven) scripts separated and assign a shortcut to each of them. But now, I realized that the custom menus are not visible in the "Keyboard shortcuts" dialog box (What a disappointment!)

    Am I missing something here? Or is there a workaround?

    1.jpg


    My idea was to trigger the main script - floating Tables.jsx - from the Manager menu item from the menu title as an argument.

    var tableMenu = app.menus.item("$ID/Main").submenus.item("Table");
    
    // "Floating Tables" sub-menu
    try {
        var subMenu = tableMenu.submenus.item("Floating Tables");
        subMenu.title;
    }
    catch(err) {
        var subMenu = tableMenu.submenus.add("Floating Tables", LocationOptions.AT_END);
    }
    
    var topLeftAction = app.scriptMenuActions.add("Top Left");
    var topLeftListener = topLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topLeftMenuItem = subMenu.menuItems.add(topLeftAction);
    
    var topCenterAction = app.scriptMenuActions.add("Top Center");
    var topCenterListener = topCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topCenterMenuItem = subMenu.menuItems.add(topCenterAction);
    
    var topRightAction = app.scriptMenuActions.add("Top Right");
    var topRightListener = topRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topRightMenuItem = subMenu.menuItems.add(topRightAction);
    
    var bottomLeftAction = app.scriptMenuActions.add("Bottom Left");
    var bottomLeftListener = bottomLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomLeftMenuItem = subMenu.menuItems.add(bottomLeftAction);
    
    var bottomCenterAction = app.scriptMenuActions.add("Bottom Center");
    var bottomCenterListener = bottomCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomCenterMenuItem = subMenu.menuItems.add(bottomCenterAction);
    
    var bottomRightAction = app.scriptMenuActions.add("Bottom Right");
    var bottomRightListener = bottomRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomRightMenuItem = subMenu.menuItems.add(bottomRightAction);
    
    var backToTextAction = app.scriptMenuActions.add("Back to Text");
    var backToTextListener = backToTextAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var backToTextMenuItem = subMenu.menuItems.add(backToTextAction);
    
    function FloatingTablesHandler(event) {
        var args = [event.parent.title];
        app.doScript(mainScriptFile, ScriptLanguage.JAVASCRIPT, args, UndoModes.ENTIRE_SCRIPT, "\"" + scriptName + "\" Script");
    }
    
    
    
    
    
    
    
    
    
    
    


    The main script reads the argument as follows:

    alert("The argument -- " + args[0]);
    
    


    If my memory is good, of Rorohiko's APID ToolKit can create "Assignable shortcut" menus I don't know this for sure at the moment because these menus a long time ago.

    BTW, the question was asked here, but he has failed.

    Kind regards

    Kasyan

    Hi Kasyan,

    If what you're asking, is if it is possible to assign a keyboard

    shortcut in the usual way with a menu created by a script item and then

    of course, of course you can.

    Add the menu item and then assign some k.shortcut you want-

    you will find your menu items in the 'Scripts' category in the keyboard

    Shortcuts dialog box.

    Ariel

  • Keyboard shortcut to run the last Script?

    Anyone know of a keyboard shortcut to run the last script that was executed? I'm editing an animation and wrote a script that writes code based on it, and I need a quick way to run it without the open file dialog box.

    Thank you!

    Method 1:

    You can assign shortcut keys to the first 20 scripts listed under the file > Scripts menu via the file «Adobe after effects 10.5 shortcuts» Just search for "ExecuteScript' in the shortcuts file find the section.

    Method 2:

    You can use ft_ToolBar which allows to launch scripts with the click of a button. You can also create a new button and just paste your script code directly in the window provided without having to create a jsx/jsxbin file.

  • Non-existent script keyboard shortcuts

    I use Mac OS X El Capitan 10.11.6 I photoshop CC was last updated and I don't have keyboard shortcuts for my editing panel. I would like to be able to move the playback cursor image to the front and back with my left and right arrows. I clicked "Enable Timeline shortcut keys" but cannot yet know what keys are enabled! When I go to edit > keyboard shortcuts > menus Panel > timeline - it seems there be no shortcuts for functions... would like any help. Thank you!

    Hmm. I have tested yesterday before responding. They work when I turned them on in the Panel menu, and not when it is not checked. So I have to ask: they are always enabled in the Panel menu?

  • Keyboard shortcut to change the layout under El Capitan

    I really want to be able to change the layout of the keyboard with a combination of shortcuts. Under El Capitan, it is possible that the possibility to choose Cmd + space under preferences keyboard, shortcut, input methods, but this shortcut is for the spotlight. How a combination own shortcut customized to change the layout of the keyboard under El Capitan could be defined?

    I think that spark that healed for another person and the same problem...

    http://www.shadowlab.org/software/spark.php

    http://www.maketecheasier.com/spark-easily-create-hot-keys-for-almost-any-applic creation-in-mac/2010/09/24

    http://scripts.SIL.org/CMS/scripts/page.php?Site_ID=NRSI & ID = ukelele

    http://DoubleCommand.sourceforge.NET/

    But haven't tried everything in El Cap.

  • How to create keyboard shortcuts in thunderbird 24.5.0

    Help
    I'm new to this [keyboard shortcuts], but understand that "keyconfig" is not compatible in the latest version of Thunderbird 24.5.0. I tried to install it, but it is rejected because of the incompatibility.

    How can I create new shortcut keys, say "empty the Junk folder" or "empty deleted items folder?

    Thank you

    Good.

    There are several articles on mozillazine giving the names of the internal functions that you can call scripts keyconfig. Good hunting.

    for example

    http://KB.mozillazine.org/Keyconfig_extension:_Thunderbird
    http://KB.mozillazine.org/Keyconfig_extension

  • Keyboard shortcuts for the buttons works irregularly - why?

    When you use the access key for the button attributes, they work sometimes and not others. Three behaviors are observed:

    -use the accesskey times moves the focus and click on the button (correct behavior)

    -use the access key moves the focus only - do not by clicking on the button

    -use the accesskey does nothing

    These problems occur without change installation, restart, etc..

    What could cause this?

    Moreover, 3.6.28 works very well with the exact same web application.

    It might be useful to have a small script for conducting a census of the keyboard shortcuts page. You can open the web console (Ctrl + Shift + k), paste the following options next to the circumflex accent ("' >" ") and press ENTER. A new element is added at the end of the body with the results.

    var aks=document.querySelectorAll("a[accesskey], button[accesskey], input[accesskey]"); var out=document.createElement("pre"); for(var i=0; i<aks.length; i++) out.appendChild(document.createTextNode("Tag:'"+aks[i].nodeName+"'; id:'"+aks[i].id+"'; name:'"+aks[i].name+"'; key:'"+aks[i].getAttribute("accesskey")+"'\n")); document.body.appendChild(out);
    
  • Keyboard shortcut to copy to the Clipboard in REPORT

    Hello

    I have not found in the help pages, but there may be a shortcut key for the file-> Clipboard hidden anywhere?

    If not, is there a possibility to customize keyboard shortcuts?

    Thank you

    PHEX

    Hello

    What exactly do you want to copy? Most of the time the usual ' ctrl + c ' combination works very well.
    If you need something else, you can set hotkeys (F1... F12) in the part of the script and the script of the action you want to perform.

    Aurélie

    Technical sales engineer

  • Keyboard shortcuts AND Actions does not

    Keyboard shortcuts 1 keys do not work (e, g.  "P" to scroll pen options, 'B' to scroll through brush options, etc...)

    The CNTL + and ALT + seems to work fine. In addition, when I hit 'P' or 'B' selects this option, it does not work through them (brush pencil to the replacement of the color to the mixer).

    I completely uninstalled PS especially remove any previous presets (that sucked) and re-installed Photoshop since I discovered it.

    In addition, actions does not correctly or the other. I have a copyright of metadata carried out screening. I had an action implemented to always update to preset on new or open documents. Given that I have re-installed PS, this script no longer works. I made a new model of metadata from 2016, has recorded a new action and implement the handler for scripts to run on the new and open. However, whenever it is running, the script that I have saved always reverts to "Feature of models" instead of pre-recorded format that is available.

    When I type 'P' or 'B', it selects this option, but does not work through them (brush pencil to the replacement of the color to the mixer).

    Go to edit-> preferences-> tools, "If you're on previous versions": Edit-> preferences-> General

    then Unckeck 'Key Shift tool Switch use'

  • Paragraph style &gt; apply... then next &gt; keyboard shortcut?

    Hi all

    I am trying to create a keyboard shortcut for:

    "Apply (paragraph style name) then next.

    But can seem to find it in the options keyboard shortcuts window.

    I usually get to this command by selecting a few paragraphs, and then control-click on the style in the paragraph Panel. A shortcut would be much faster.

    I've attached a screenshot of the menu with the command that I'm looking to make a shortcut.

    Thank you!

    Screen Shot 2016-08-30 at 11.51.18 AM.png

    Here is a link to the free "Apply Next style" quick script that makes it very easy to apply the following style to the selected paragraphs:

    http://www.ID-extras.com/InDesign-quick-apply-with-next-style

    Enjoy!

    Ariel

  • Change keyboard shortcuts, use simple characters that are normally reserved for tool Control Panel

    I have a script that I use now that I want to replace the bar cropping tool,

    Can I deselect C for the use of the current culture in keyboard shortcuts. When I then go to menus keyboard shortcuts of applications, I am looking to replace the scripts files > "croptool.jsx" and select "C" and it won't let me not use it as it takes a combination of keys.

    Then I exported the keys and then open in Text edit.

    It seems straight forward, so I added the line up above the vanishing point.

    < command type='Dynamics' name='Script_CROPTOOL'>

    < Shortcut >C< / shortcut >

    < / order >

    < command type='Dynamics' name=' Vanishing Point '>

    < Shortcut >Cmd + Opt + V< / shortcut >

    < / order >

    Then when I load it. He worked in part. In this C now appears in the menu. So anyone know if I can get this working correctly? A little more code can be used to allow simple letters in the wok in "application menus.

    Matt

    Screen Shot 2016-06-01 at 11.46.12.png

    Under file > Scripts > Script event handler you can bind an Action or Script to an event.

    Select the tool crop could benefit, although I have not yet tested.

  • How can I assign brush Angle of Rotation to a keyboard shortcut?

    I have a Wacom Intous4 Tablet and what to put in place where the touch ring controls the angle rotation of a brush.

    I went and combed through the forums here and a few others, better I can't hardly find subjects or the answer is more recent than a year.

    When I do the traditional search through google, the closest I found is basically "do predefined for each angle that you want, save these settings predefined in the form of action and then to create an action for each brush to use through the same stage. Assign keyboard shortcuts to actions. "

    I do not understand why such a complicated thing looks. I mean, you can control the size of the brush with keyboard shortcuts, wheel of the mouse even and Wacom Touch Ring regardless of what brush is selected. "Why the hell angle brush would be different?

    I must be missing something. How can I control brush Angle of Rotation using the Wacom Intous4 'Touch Ring'?

    You are right.  Definition of Photoshop a brush sample None seems a little strange to me.   You use a tool of type brush for model part of your image as a Brush tool to sample the color, the Brush tool of healing to sample a texture, the clone to sample set cloning stamp tool point what are not sample brushes they are elliptical brushes with features of special paint.  The other no sample brushes are adobe preset brushes that are hard or soft ellipses. All the other bushes are two new types of special brush or sampled bushes. New Special brushes have bristles of different qualities and can not be changed using Photoshop UI normal brush features diameter, hardness, Angle, roundness, spacing, Flipy and Flipx.  Photoshop UI can be used to change any special brush types features diameter, hardness, Angle, roundness, spacing, Flipy and Flipx. However, Photoshop scripts can change only Adobe created elliptical brushes. The user sets elliptical brushes are brushes sample.

    So its only possible to create shortcuts for Adobe created elliptical brushes.  If you can live with that here are two script that you can install in Photoshop CC 2014 upward.  Change Photoshop keyboard shortcuts and add shortcuts for scripts.  Add setting you Wacom preferences to use.

    BrushAngle-.jsx

    /*
    Brush Features(Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx)
          Diameter  range 1 to 5000
          Hardness  range 0 to 100
          Angle     range 0 to + or - 180
          Roundness range 1 to 100
          Spacing   range 1 to 1000
          Flipy     range 0 or 1 false or true
          Flipx     range 0 or 1 false or true
    */
    try {
      var features = getBrushFeatures ();
      var Diameter = features[0];
      var Hardness = features[1];
      var Angle = features[2];
      var Roundness = features[3];
      var Spacing = features[4];
      var Flipy = features[5];
      var Flipx = features[6];
    
      Angle = Angle-5;
      if (Angle <= -180) Angle = 180;
    
      //setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx)
      setBrushFeatures ( features[0], features[1], Angle, features[3], features[4], features[5], features[6] );
      }
    catch(e) { alert(" set Brush features failed make sure you have a round tip brush active"); }
    
    //==============================================================================================//
    function getBrushFeatures (){
      //A Brush tool must be the current tool
        if (!app.toolSupportsBrushes(app.currentTool)) selectBrush();  //CC 2014
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        var appDesc = executeActionGet(ref);
        var toolDesc = appDesc.getObjectValue(stringIDToTypeID('currentToolOptions'));
        var brushDesc = toolDesc.getObjectValue(stringIDToTypeID('brush'));
        var currDiameter = brushDesc.getDouble(stringIDToTypeID('diameter'));
        var currHardness = brushDesc.getDouble(stringIDToTypeID('hardness'));
        var currAngle = brushDesc.getDouble(stringIDToTypeID('angle'));
        var currRoundness = brushDesc.getDouble(stringIDToTypeID('roundness'));
        var currSpacing = brushDesc.getDouble(stringIDToTypeID('spacing'));
        var currFlipy = brushDesc.getBoolean(stringIDToTypeID('flipY'));
        var currFlipx = brushDesc.getBoolean(stringIDToTypeID('flipX'));
      var currentFeatures = new Array( currDiameter, currHardness, currAngle, currRoundness, currSpacing, currFlipy, currFlipx );
        return currentFeatures
    }
    
    function setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx) {
        var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID( "Brsh" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        var desc1 = new ActionDescriptor();
        desc1.putDouble(stringIDToTypeID('diameter'), Diameter);
        desc1.putDouble(stringIDToTypeID('hardness'), Hardness);
        desc1.putDouble(stringIDToTypeID('angle'), Angle);
        desc1.putDouble(stringIDToTypeID('roundness'), Roundness);
        desc1.putUnitDouble( stringIDToTypeID('spacing'), charIDToTypeID('#Prc'), Spacing);
        desc1.putBoolean(stringIDToTypeID('flipY'), Flipy);
        desc1.putBoolean(stringIDToTypeID('flipX'), Flipx);
        desc.putObject( stringIDToTypeID('to'), charIDToTypeID( "Brsh" ), desc1 );
        executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
    }
    
    function selectBrush() {
      //select brush scriptlistener code
      var idslct = charIDToTypeID( "slct" );
      var desc12 = new ActionDescriptor();
      var idnull = charIDToTypeID( "null" );
      var ref8 = new ActionReference();
      var idPbTl = charIDToTypeID( "PbTl" );
      ref8.putClass( idPbTl );
      desc12.putReference( idnull, ref8 );
      executeAction( idslct, desc12, DialogModes.NO );
    }
    

    BrushAngle + .jsx

    /*
    Brush Features(Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx)
          Diameter  range 1 to 5000
          Hardness  range 0 to 100
          Angle     range 0 to + or - 180
          Roundness range 1 to 100
          Spacing   range 1 to 1000
          Flipy     range 0 or 1 false or true
          Flipx     range 0 or 1 false or true
    */
    try {
      var features = getBrushFeatures ();
      var Diameter = features[0];
      var Hardness = features[1];
      var Angle = features[2];
      var Roundness = features[3];
      var Spacing = features[4];
      var Flipy = features[5];
      var Flipx = features[6];
    
      Angle = Angle+5;
      if (Angle >= 180) Angle = -180;
    
      //setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx)
      setBrushFeatures ( features[0], features[1], Angle, features[3], features[4], features[5], features[6] );
      }
    catch(e) { alert(" set Brush features failed make sure you have a round tip brush active"); }
    
    //==============================================================================================//
    function getBrushFeatures (){
      //A Brush tool must be the current tool
        if (!app.toolSupportsBrushes(app.currentTool)) selectBrush();  //CC 2014
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
        var appDesc = executeActionGet(ref);
        var toolDesc = appDesc.getObjectValue(stringIDToTypeID('currentToolOptions'));
        var brushDesc = toolDesc.getObjectValue(stringIDToTypeID('brush'));
        var currDiameter = brushDesc.getDouble(stringIDToTypeID('diameter'));
        var currHardness = brushDesc.getDouble(stringIDToTypeID('hardness'));
        var currAngle = brushDesc.getDouble(stringIDToTypeID('angle'));
        var currRoundness = brushDesc.getDouble(stringIDToTypeID('roundness'));
        var currSpacing = brushDesc.getDouble(stringIDToTypeID('spacing'));
        var currFlipy = brushDesc.getBoolean(stringIDToTypeID('flipY'));
        var currFlipx = brushDesc.getBoolean(stringIDToTypeID('flipX'));
      var currentFeatures = new Array( currDiameter, currHardness, currAngle, currRoundness, currSpacing, currFlipy, currFlipx );
        return currentFeatures
    }
    
    function setBrushFeatures (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx) {
        var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID( "Brsh" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        var desc1 = new ActionDescriptor();
        desc1.putDouble(stringIDToTypeID('diameter'), Diameter);
        desc1.putDouble(stringIDToTypeID('hardness'), Hardness);
        desc1.putDouble(stringIDToTypeID('angle'), Angle);
        desc1.putDouble(stringIDToTypeID('roundness'), Roundness);
        desc1.putUnitDouble( stringIDToTypeID('spacing'), charIDToTypeID('#Prc'), Spacing);
        desc1.putBoolean(stringIDToTypeID('flipY'), Flipy);
        desc1.putBoolean(stringIDToTypeID('flipX'), Flipx);
        desc.putObject( stringIDToTypeID('to'), charIDToTypeID( "Brsh" ), desc1 );
        executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
    }
    
    function selectBrush() {
      //select brush scriptlistener code
      var idslct = charIDToTypeID( "slct" );
      var desc12 = new ActionDescriptor();
      var idnull = charIDToTypeID( "null" );
      var ref8 = new ActionReference();
      var idPbTl = charIDToTypeID( "PbTl" );
      ref8.putClass( idPbTl );
      desc12.putReference( idnull, ref8 );
      executeAction( idslct, desc12, DialogModes.NO );
    }
    
  • (Unsupported) keyboard shortcuts added to Premiere Pro?

    A few months ago, I created a 30 minute video that goes into detail about all kinds of missing features in Premiere Pro. Some of these functions have been requested by users for more than a decade and yet do not first... features like save a custom transition, a shortcut for delete performs a transition in the timeline, a shortcut to add a keyframe... the list goes.

    You can watch my video, or you can just read the description of the video to see a quick list of the 57 missing features I'm talking about.

    Video request for Adobe first CC 2014.2 massive feature! (1/2) - YouTube

    I mention in the video that first modding can be the only way to get these features in the program, as long as the developers refuse to add these features for whatever their reasons may be.

    I am particularly interested in the addition of shortcuts not supported, as it seems that the best thing to do, with the greatest benefit. Here is a list of features that I'm hoping to add by myself:

    #1. Each transition should have a keyboard shortcut to apply

    #3. Enable keyboard shortcuts apply all PRESETS, EFFECTS, TRANSITIONS and TRANSITION (new), PRESETS

    #5. A shortcut to remove the transitions (only)

    #6. A shortcut to reverse a clip--(cela peut être fait avec AutoHotKey)

    #7. Shortcuts for the keyframe right click on menu items

    #8. Shortcuts for all the buttons "controls."

    #9. Shortcuts for controls of the layer in the timeline (mute, lock, etc.).

    #11. A shortcut for all GAME video

    #12. A shortcut to the ripple delete clip to the point of reading--(cela peut être fait avec AutoHotKey)

    #14. Effects Panel contextual search--(cela peut être fait avec un script de macro fou, mais il ne fonctionne toujours pas 100 % dele de temps) bar

    #16. A shortcut to close the reference monitor

    #17. A shortcut to close the module of titration

    #18. A shortcut for 'back' in the bin icon display

    So, I downloaded the software plug-in SDK here: Premiere Pro Developer Center | Adobe Developer Connection ... but frankly, I have very little experience with programming. (Good God Jim, I'm an editor, not a programmer!) By reading the documents, however, I don't see ANYTHING that mentions even the words "keyboard" or "shortcut...". »

    He turned to me as if the SDK only has supported for creating new transitions to be used first and create new effects such as the red giant denoiser. Am I wrong? Am I wrong?

    Is it POSSIBLE to use the SDK to add these keyboard shortcuts to first? I don't like how difficult it is. (unless he is having to decompile the whole program into machine code, I still may be crazy enough to at least try).

    I am determined to get these keyboard shortcuts long first. I just need to know if it is possible. If this is the case, I would greatly appreciate any advice you could give me to get there.

    Thank you

    Taran van side

    Editor-in-Chief of 2 years at LMG

    Organization offers no API for creating keyboard shortcuts or manipulation.

  • Keyboard shortcuts do not work in .saveDialog or .saveDlg

    Hey all,.

    First of all, thank you for taking the time to read this and help. It is greatly appreciated.

    I'm working on a simple script where it exported an InDesign file to PDF, opening a record the dialog window for the user to select the location to save and give it a name.

    We have another system that generates the name for us because we just simply copy and paste into the window. This works well when there is a normal export using InDesign built way to do, but when I try and do it through the script, keyboard shortcuts do not seem to work.

    No idea why?

    Here is an example of the code in the loop...

    //========================== Export PDF ================================//
    
    var myDoc = app.activeDocument;
    var myFolderName = myDoc.filePath;
    
    
    var myDocumentName = myDoc.name.slice (0, -5);
    
    
    //Apply a name to the PDF file based on the INDD file, but without the .indd extension
    //var myFileName = myFolderName + "/" + myDocumentName;
    var myFileName = File(myDoc.name);
    var myFile = myFileName.saveDlg("Please insert a file name");
      
    //Do not open the PDF Export dialog box. Set "false" to "true" if you want the dialog box.
    myDoc.exportFile(ExportFormat.pdfType, myFile, false, "Email");
    
    //========================== End  - Export PDF Script ================================//
    

    Now, I'm not expert in script, I get everything, follow tutorials and try to piece things together (learning by doing), so any help would be greatly appreciated, especially if you can explain your answer in plain English

    If I did not make myself clear, let me know and I'll explain it another way.

    Thanks in advance.

    Your screenshot indicates that the dialog box has been with ScriptUI. If this is the case, then you have your explanation: ScriptUI windows do not like copy/cut/paste shortcuts. It has become better in the latest versions on Windows, but it's no good for you. Anyway, there is nothing you can do about it.

    Peter

  • Is it possible to create a keyboard shortcut for "book of the export to PDF format? (Cannot find it in the keyboard shortcuts window.)

    I would like to create a shortcut for the 'Export to the book in PDF format' command in the Panel menu books, but I can not simply find this command in keyboard shortcuts. Finding is not in what appeared to be the logical place (keyboard shortcuts > product area: Panel Menus > book), I looked at all areas of products listed on the drop-down list - but it seems that I must be missing something.

    What I do / where should I look to assign a keyboard shortcut for this command?

    Sorry, I agree that it is missing in action. I don't know of a workaround, unless someone has written a script. Scripts can be called with keystrokes.

Maybe you are looking for