User Tools

Site Tools


Clipboards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
Clipboards [2017/03/21 21:19]
JMichaelTX [Clipboard History] Reorganized and added link to forum post about pasting from history
Clipboards [2017/07/14 23:26]
JMichaelTX [Clipboard Actions] Add set var to text action
Line 19: Line 19:
   * [[action:​Paste_from_Named_Clipboard]]   * [[action:​Paste_from_Named_Clipboard]]
   * and many others   * and many others
 +
 +The System Clipboard is a complicated entity, and often contains many different flavors of the same data last copied from an app.  To better understand how Keyboard Maestro processes the System Clipboard, see [[https://​forum.keyboardmaestro.com/​t/​ulysses-no-text-in-clipboard/​6742/​23?​u=jmichaeltx | this Forum post by @PeterNLewis]]. ​ In particular, this post deals with getting plain text from the System Clipboard.
  
 ===== Clipboard History ===== ===== Clipboard History =====
Line 46: Line 48:
 ==== Paste from History ==== ==== Paste from History ====
  
-There is no built-in ​_Action_ ​or option to paste from a specific clipboard stored in your _Clipboard History_, but a simple macro can do the job for you.  For details, see [[https://​forum.keyboardmaestro.com/​t/​how-can-i-get-the-second-to-last-item-in-clipboard/​6615/​6?​u=jmichaeltx | this Keyboard Maestro Forum post]] ​  .+There is no one built-in ​Macro or Action that will paste from the _Clipboard History_, but you can easily ​do this by making use of the [[action:​Set_Clipboard_to_Past_Clipboard]] _Action_. 
 + 
 +For example, to paste from the 2nd item on the _Clipboard History_ (where the latest, most recent item is #1), you can use these three _Actions_ in a macro: 
 + 
 +{{:​paste-from-clipboard-history-km-7.3.png?​nolink|}} 
 + 
 +For more discussion on this, see [[https://​forum.keyboardmaestro.com/​t/​how-can-i-get-the-second-to-last-item-in-clipboard/​6615/​6?​u=jmichaeltx | this Keyboard Maestro Forum post]] ​  .
  
  
Line 78: Line 86:
     * [[action:​Paste]]     * [[action:​Paste]]
     * [[action:​Delete_Past_Clipboard|Delete Current or Past Clipboard]] in the history of the System Clipboard     * [[action:​Delete_Past_Clipboard|Delete Current or Past Clipboard]] in the history of the System Clipboard
 +    * [[action:​Set_Variable_to_Text#​Set_to_The_Clipboard|Set Variable to Text Action]] using [[token:​CurrentClipboard|]] [[Tokens|Token]]
   * **All Clipboards**   * **All Clipboards**
     * [[action:​Display_Clipboard]]     * [[action:​Display_Clipboard]]
Clipboards.txt · Last modified: 2021/10/01 03:14 by peternlewis