Created
October 22, 2013 07:49
-
-
Save kuronekomichael/7096697 to your computer and use it in GitHub Desktop.
Sublime Text 2でメニューから行を選択してカットするApple Script -- applescript, apple script AppleScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Sublime Text 2をアクティブにする | |
| tell application "Sublime Text 2" | |
| activate | |
| end tell | |
| -- Sublime Text 2の現在行を選択して、切り出す | |
| tell application "System Events" | |
| tell process "Sublime Text 2" | |
| click menu item "Expand Selection to Line" of menu "Selection" of menu bar 1 | |
| click menu item "Cut" of menu "Edit" of menu bar 1 | |
| end tell | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment