I’ve hit a stumbling block.
if I run this from the terminal:
subl --command 'goto_line {"line":50}'
it works, the caret is now at the start of line 50.
but if I run this ruby script:
#!/usr/bin/ruby
`subl --command 'goto_line {"line":50}'`
or this applescript:
do shell script "subl --command 'goto_line {\"line\":50}'"
ST2 will create a new document with a name like “subl stdin cGRGGe.txt” and the script task will not end until I close this new document.
I’m baffled. Does anyone know what might be going on?