Skip to content

Instantly share code, notes, and snippets.

@jdmonaco
Created June 11, 2014 20:24
Show Gist options
  • Save jdmonaco/30ed7f0fee6af38bae19 to your computer and use it in GitHub Desktop.
Save jdmonaco/30ed7f0fee6af38bae19 to your computer and use it in GitHub Desktop.
To fix backward-search synchronization (SyncTeX) between Skim and TextMate set Skim > Preferences > Sync > Preset to "Custom" with the command pointing to this script file and Arguments set to '%line "%file"' (without the single quotes). The problem is that (for as yet unknown reasons) the Shift-Cmd-click in Skim started opening a new editor win…
#!/usr/bin/osascript
on run argv
set mateScript to "mate -l " & item 1 of argv & " " & item 2 of argv
tell application "Terminal"
set thisTab to do script mateScript
set visible of window 1 to false
delay 0.5
do script "exit" in thisTab
delay 0.5
close window 1
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment