Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <root>
- <vkopenurldef>
- <name>KeyCode::VK_OPEN_URL_Terminal</name>
- <url>file:///Applications/Utilities/Terminal.app</url>
- </vkopenurldef>
- <item>
- <name>Activate Terminal with ⌘Space</name>
- <identifier>ActivateTerminalWithCmdSpace</identifier>
- <autogen>
- __KeyToKey__
- KeyCode::SPACE, VK_COMMAND | ModifierFlag::NONE,
- KeyCode::VK_OPEN_URL_Terminal
- </autogen>
- </item>
- </root>
- on run {input, parameters}
- tell application "Terminal"
- do script " "
- activate
- end tell
- return input
- end run
- on run {input, parameters}
- if application "iTerm" is running then
- tell application "iTerm"
- create window with default profile
- activate
- end tell
- else
- tell application "iTerm"
- activate
- end tell
- end if
- return input
- end run
Add Comment
Please, Sign In to add comment