Skip to content

Instantly share code, notes, and snippets.

@CraigWilliams
Created February 20, 2011 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CraigWilliams/835727 to your computer and use it in GitHub Desktop.
Save CraigWilliams/835727 to your computer and use it in GitHub Desktop.
Xcode - Edit current document in TextMate
#!/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