Skip to content

Instantly share code, notes, and snippets.

@moyashi
Created December 24, 2021 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moyashi/ff066f4fcce1b0919eaa86b1f738a476 to your computer and use it in GitHub Desktop.
Save moyashi/ff066f4fcce1b0919eaa86b1f738a476 to your computer and use it in GitHub Desktop.
set _clipboard to the clipboard
set _lines to paragraphs of _clipboard
set _output to ""
repeat with i in (reverse of _lines)
set _output to _output & i & "
"
end repeat
set the clipboard to _output
@moyashi
Copy link
Author

moyashi commented Dec 24, 2021

macOS用のAppleScript。
これをScript Editorで開き、アプリケーションとしてアプリケーションホルダに保存。
これを何らかのランチャーで起動するとクリップボード内のテキストが逆順になる。
自分はLaunchBarというコマンドランチャーで起動している。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment