Created
February 20, 2011 05:11
-
-
Save CraigWilliams/835727 to your computer and use it in GitHub Desktop.
Xcode - Edit current document in TextMate
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
#!/bin/sh | |
editWithTextmate=`/usr/bin/osascript <<EOT | |
tell application "Xcode" | |
tell active project document | |
tell window 1 | |
set docPath to associated file name | |
end tell | |
end tell | |
end tell | |
do shell script "mate " & quoted form of docPath` | |
echo editWithTextmate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment