OK, so I can get around this problem by getting Skim to run a python script, which I've named open_in_mate.py:<div><br></div><div><div>#!/usr/bin/env python</div><div><br></div><div>import urllib</div><div>import os</div><div>import sys</div><div><br></div><div>commandString = "open \"txmt://open?url=file://%s&line=%s\"" % (urllib.quote(sys.argv[1]), sys.argv[2])</div><div><br></div><div>os.system(commandString)</div><div><br></div><div><br></div><div>But when I swap back to using the mate command the inconsistency is still there, i.e.:</div><div><br></div><div>1) open_in_mate.py %file %line is set as Skim's command to fire when you Cmd+Shift+Click on somewhere</div><div>2) Test it, works fine - jumps to TM with the file open in the correct window</div><div>3) Swap Skim settings to use /usr/local/bin/mate -l %line "%file"</div><div>4) Test it, jumps to TM but the file is open in a different window</div><div><br></div><div>This appears to be a very peculiar bug with the mate terminal command - any comments Allan?</div></div><div><br></div><div>Thanks,</div><div><br></div><div>David.</div>