Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Jordan
committed
Dec 3, 2014
1 parent
a839956
commit e8ada8d
Showing
4 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on run {input} | ||
set the_path to POSIX path of input | ||
set cmd to "vim " & quoted form of the_path | ||
tell application "System Events" to set terminalIsRunning to exists application process "Terminal" | ||
tell application "Terminal" | ||
activate | ||
if terminalIsRunning is true then | ||
do script with command cmd | ||
else | ||
do script with command cmd in window 1 | ||
end if | ||
end tell | ||
end run |