0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Alfredで1つ前(2つ前)にクリップボードにコピーしたオブジェクトをペーストする

Posted at

TL;DR

Alfredで1つ前(2つ前)にクリップボードにコピーしたテキストや画像をショートカットでペーストするワークフローを作成した。
image.png

Motivation

コピペするときに、地味に一つ前のクリップボードのオブジェクトをペーストしたいときに、AlfredのClipboad Historyを開いて探すのが面倒。
image.png
私の場合は、⌘+Shift+x でClipboad Historyを開くようにしている(デフォルトは何だったか忘れた)。
image.png

Source

1つ前のオブジェクトを⌘2回、2つ前のオブジェクトを⌥2回でペーストする。
ホットキーで呼び出して、AppleScriptで実行する。

on run
  tell application "System Events" to keystroke "x" using {command down, shift down}
  delay 0.1
  tell application "System Events" to key code 125
  tell application "System Events" to key code 125
  tell application "System Events" to key code 76
end run

最後に

Alfredしか勝たん
https://github.com/kentoak/paste_back_to_back_alfred

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?