Skip to content

Instantly share code, notes, and snippets.

@kuronekomichael
Created October 22, 2013 07:49
Show Gist options
  • Save kuronekomichael/7096697 to your computer and use it in GitHub Desktop.
Save kuronekomichael/7096697 to your computer and use it in GitHub Desktop.
Sublime Text 2でメニューから行を選択してカットするApple Script -- applescript, apple script AppleScript
-- 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