"Copy / paste"-event in Indesign

Hello world

does anyone have an idea if there is SOMEWHERE an event that is raised when "copy / paste"-ing one or several object in Indesign?

Well, since no one seems to answer more in this forum and I hope to help someone else wo might look at this problem in the future, here is a solution:

Normally, all your events/eventlisteners should target "a file or a JavaScript script", which is pretty useless, since we are in an environment of ActionScript. COULD be an elegant way to create a stream of significant work to do, but since all the documentation, tutorials, cookbooks etc on it disappeared into oblivion, here's what you need to do.

-Check if the event source is a child of CSHostObject. Otherwise, you might have a problem

-Let´s to pretend that it is, then use the IDScriptingEventAdapter to catch events. Here is an example that works for me to detect if a 'paste' happens

private function pluginComplete():void{
     // in my project, this function is called once the plugin has been initialized.
     // the ID 271 is for "Paste". If you need another one, you might need to fiddle around with the items within the menuActions-Object
     IDScriptingEventAdapter.getInstance().addEventListenerToObject(MenuAction.AFTER_INVOKE, menuActionHandler, InDesign.app.menuActions.itemByID(271));
}

private function menuActionHandler(e:*):void{
  trace("AN EVENT !!!", e)
}

Tags: Creative Suites

Similar Questions

  • Copy / paste events

    Hi all

    I have a textfield that checks the text entries with:
    @FXML protected void keyTyped(KeyEvent event) {
             
             System.out.println("keypressed " + event.getCharacter());
             if(textFieldName.getCharacters().length() >= 30) {
                 textFieldName.deletePreviousChar();
                 lenghtWarning.setVisible(true);
            }
             
             else {
                 lenghtWarning.setVisible(false);
             }
         }
    How can I detect a paste context menu or CTR v event?

    Which headset should I use to catch the copy / paste events?

    You can do to respond to the events of editing text:

    
    
  • Observation text cut-and - paste, copy/paste, event and pasted RangeData extraction from the notification of the observer?

    Hello

    I wrote an observer to inform me on text editing. I grouped the Cobserve on kTextStoryBoss and I attach on IID_TEXTMODEL.

    I get notification in Update() whenever I try to edit the text, delete, paste, etc. But I need to know the range of text that has triggered the Notification.

    For example: copy paste If a character set is stuck in a framework, I need to have the RangeData object for this range so that I can do a few things.

    can anyone suggest a way to do it?

    I use myTextEditPostProces: CTextCommandPostProcess.

  • Select the calendar to copy and paste events

    Schedule SHOULD be set to copy and paste events on iPad and iPhone!

    davemuth wrote:

    Schedule SHOULD be set to copy and paste events on iPad and iPhone!

    Why "must" it? The world will end if it is not changed?

    It is a forum for technical support to users. Apple is not read here. Submit your suggestion to Apple here:

    http://www.Apple.com/feedback

    If enough people request it, there is a small chance Apple pourrait do change. Or not.

  • Could not find a way to copy and paste events on my calendar

    Original title: * e-mail address is removed from the privacy *.

    I can't find a way to copy and paste events on my calendar.  I often have the same event repeated on different days.  In Outlook, it is relatively simple to click and drag, but this doesn't seem to work in the Windows calendar ap on my Surface mail.

    Hello PeterRiccardella,

    Unfortunately there is no function to copy and paste your calendar events.

    When you create your event, under how often, you can define the event in the daily, weekly, monthly, etc...

    If the option you are looking for is not available, you can configure your calendar via IE, and it syncs with your calendar application.

    I hope this helps.

    Best regards

    Giselle

  • Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

    Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

    Duplicate thread: I can´t paste the copied text in any application adobe... InDesign, Photoshop, Prime Minister...

  • I can't copy and paste into the InDesign application.

    I can't copy and paste into the InDesign application. He worked a couple of days.

    OS version? How do you paste copy operations? Menu, shortcut, right-click?

    Have you tried trashing the prefs? See replace your preferences

  • Copy / paste don't work in Indesign after Psd/AI upgrade to 2015

    I made the mistake of upgrading photoshop and illustrator to 2015 CC. I no has not upgraded Indesign yet because Indesign has historically not well with earlier versions of Indesign. Now, I can't do the simple copy and paste operation. In fact, I don't think it was fair to InDesign, but I had some problems with photoshop, the inability to copy and paste to the other program (such as photoshop for IA/id). I can't recreate the bug of photoshop constantly copy paste, but the copy and paste since indesign is completely broken.

    Anyone else run into this or similar problems after the upgrade?

    UPDATE: I installed InDesign 2015 as well (while keeping the Indesign 2014 version and still, can not copy and paste. I should be more specific. I can cut, but it will not stick to anything (text, shapes, etc.). of in indesign. I can copy and paste to Notepad in indesign, but no indesign on. I can't copy a form in indesign and paste another in the same document (or different documents). I can use ctrl + click and drag to duplicate.

    My systems admin just walked by and I asked about the formatting of my machine, only the when he said there was an update of Microsoft 2 days ago what he just rolled back this morning.

    It was the fault of all Microsoft!

    So I just rebooted and everything works fine!

  • Copy / paste stops working in Windows 7 Pro

    Hello

    We have a PC running Windows 7 Professional 64-bit, Quad i7, 8 GB of RAM. The machine is used for editing desk top - CS6 Adobe, Microsoft Office 2003, CAD. The machine will be left on for extended periods of time. Reboots occur if the system plays to the top (which is rare), or when Windows Update requires a restart.

    In rare cases, copy and paste in Windows work stoppages - which means that nothing can be copied and pasted between any application: Notepad, Word, Wordpad, etc. InDesign. CTRL + C and Ctrl + V do not. If we use the Edit menu to copy, and then in the same application or in another application click Edit, paste to the option is grayed out.

    A reboot will fix it.

    I ran SFC/scannow, but no problem not found:

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\Windows\System32>sfc/scannow

    Start scanning system.  This process will take time.

    Start of the phase of verification of the scanning system.
    Full check of 100%.

    Windows resource protection did not find any breach of integrity.

    C:\Windows\System32 >

    Even if a reboot can solve this problem there are times where a large number of applications will be open and restart becomes a major obstacle. I don't want this issue to become a common problem, so I was wondering if you people had any suggestions that I could try to track down why it happened and how I can prevent it or even provide a fix that re - allows you to copy paste & without requiring a reboot.

    Thank you very much.

    There is a long thread here on this subject, with several proposed solutions.

  • I have a word file with Hindi text in Arial Unicode font. When I copy - paste the content in Indesgn Cs6, it does not appear. What shud - I do?

    Copy-paste text Hindi of MS word in Indesign CS6

    You must enable the universal Adobe paragraph composer and change the language of Hindi. The former in the of paragraph Style Options > Justification > composer and the second in paragraph Styles of Options > advanced character formats > language.

  • How to make the PDF text field to be strikes do not copy/paste from previous text fields?

    Dear friends

    Helps to solve a problem related to the fields of PDF text, please

    Is there a way to make a PDF of the respondent, which ends of fields text to type own text not copy/paste of the previous text fields?

    Thank you very much!

    Copy the following code, used as key event custom field of your field, will prevent to enter more than one character at a time, which means that copy it text from an external source is not possible:

    if (event.change.length>1) event.rc=false;
    

    However, you can inform your users of this restriction, or they think that something is wrong with the file.

  • Get rid of the edges of the image during the copy of Illustrator in InDesign?

    The outlines of the blue block appear when I copy my simple vector illustration and paste it into InDesign. I tried to, but I'm losing a lot of detail. How can I get rid of the frames?

    You see the edges when you deselect the option? It seems that yoou see the bounding box, which will be for each object.

    And you don't lose detail when plaicng an file, even if your preiew cannot show it. are you affect the performance of high quality display? the default setting is typical, which is a proxy low resolution.

  • Adobe flex copy paste htmlText into a text box

    I have a textArea1, I copy a different textArea2 htmlText in the current text box, it brings to the formatting of the textArea2, it's ok, when I erase the textArea1 text when I start typing, I always get the same format of the textArea2, how I don't know what was pasted into the textArea? I tried to paste event, it triggered something.

    What I want to achieve is, try to find out what was pasted here, if the style of the pasted text is different, so try to update to the original styles. How to get there?

    Thank you.

    Thank you.

    I found the solution, when copy us paste. instead of reset the htmlText property we were he reset the text property, which was causing the problem.

  • N-copy-paste the text in the dialog

    Hello

    By topic titles, we have a javascript that worked in InDesign CS4 with enable n-copy-paste, we have noticed recently, n-copy-paste no longer works in CS5 - CS6 when the windows prompt appears. The script itself still works well, but without the ability to copy - paste text, it slows down us a little. We noticed if the copy and paste is done via the Edit menu then the prompt window will accept the pasting and continues to ignore anything else copied from office and elsewhere. Adobe has broken something with CS5 or more? Anyone has similar problem or has a solution? It's one thing to setting preferably need changed?

    Thank you!

    Yeh, a right-click with a mouse works; simply not CMD - V on the keyboard (mac).

    I can copy 'text' of anywhere outside InDesign and it works too.

    Thank you Trevor.

  • Y at - it an alternative to the IndicPlus to copy paste from MS word?

    I'm new to inDesign, do history languages Punjabi already typed in MS Word, but when I copy paste on inDesign 5.5, it changes the text. Is it possible to fix this, or should I buy IndicPlus? If there is no best solution please advise, thank you

    My team in India typed using a keyboard online (google can be), above send it to me via facebook, I copied and pasted in ms word, edited for content and spelling, copied from there mistakes in inDesign, and here its all messed up.

    HM, well, if it's in the keyboard online Google, then chances are good that it is encoded. As Peter said, tell us the name of the fonts used in (Word and ID) will help.

    One thing to note: I have not tried to use one of these scripts for CS4 (I went out and bought global tools of in - Tools.com, it of great but has no specific Indic language tools) so that the script could not operate. Here's how to check: click on this little button in the upper right corner below the buttons enlarge/reduce to a minimum:

    If there is a check mark next to the Adobe paragraph composer or composer single Adobe... then the universal composer is not on. It is possible that the script will not work in CS5.5, is since then has been written for CS4. If the WRC is enabled, then there should not be any control here at all.

    Another place to look is in the menu of Justification:

    If the WRC is permanently on: then it may well be the police. I've never seen a script Punjabi police who worked in Word but not ID, but I have seen this in other complex script languages (Tibetan, Khmer).

    Finally, with regard to the question of how-to-communicate-with-Adobe: I think you have a very good reason to want to communicate your position at Adobe. However, we have some employees who post here regularly receive a bit when shady people that we are trying to help (for free!) message with anger on Adobe supposed problems. If we can understand that there is something really wrong here, that Adobe can fix, then I certainly will help you find a way to communicate with real employees of Adobe (whether by the feature request form, or by starting a pension case).

Maybe you are looking for