Macro that create new clipboard

  1. please i need macro that copy word
    that i highlight in Firefox that word
  2. and than create new clipboard
    that the name of this clipboard will be that word
    that i highlight in Firefox that word
  3. than add Firefox
    that i highlight in Firefox
    and add it to this clipboard

Sorry, KM does NOT support the dynamic naming of Named Clipboards .

So, I don't think you need a named clipboard. If you need to save the data for future use, just use a Global Variable.

Also, I don't see anything unique to Firefox, so the below example will work in any app.
You did not say how you wanted to combine the two selections, so I have provided a KM Variable at the top where you can set the characters you want:

image

The default is a LF.

Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.

Please let us know if it meets your needs.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MACRO:   Set Clipboard to Combine Two Selections [Example]

-~~~ VER: 1.0    2020-08-12 ~~~
Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

DOWNLOAD Macro File:

Set Clipboard to Combine Two Selections [Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


ReleaseNotes

Author.@JMichaelTX

PURPOSE:

  • Set Clipboard to Two Separate Selections

==HOW TO USE==

  1. First, make sure you have followed the Setup Instructions below.
  2. Trigger this Macro
  3. Make any selection from any app
  4. Press OPT-RETURN
  5. Make another selection
  6. Press OPT-RETURN

NOTICE: This macro/script is just an Example

  • It is provided only for educational purposes, and may not be suitable for any specific purpose.
  • It has had very limited testing.
  • You need to test further before using in a production environment.
  • It does not have extensive error checking/handling.
  • It may not be complete. It is provided as an example to show you one approach to solving a problem.

REQUIRES:

  1. KM 8.0.2+
  2. macOS 10.12.6+ (Sierra+)
  • KM 8 Requires Yosemite or later, so this macro will probably run on Yosemite, but I make no guarantees. :wink:

MACRO SETUP

  • Carefully review the Release Notes and the Macro Actions
    • Make sure you understand what the Macro will do.
    • You are responsible for running the Macro, not me. :wink:
      .
  • Assign a Trigger to this maro.
  • Move this macro to a Macro Group that is only Active when you need this Macro.
  • ENABLE this Macro.
    .
  • REVIEW/CHANGE THE FOLLOWING MACRO ACTIONS:
    • ALL Actions that are shown in the magenta color

1 Like