<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font color="#0a51a1"><br></font>A couple of ideas
here:<br><font color="#0a51a1"><br></font>Simulate a command
+ up arrow keypress, with Applescript or other.<br><font color="#0a51a1"><br></font> or<br><font color="#0a51a1"><br></font>open a url;  
txmt://open/?url=file://[YOUR  PATH HERE]&line=0<br><font color="#0a51a1"><br></font>From the command
line its just <br><font color="#0a51a1"><br></font><span style="font-family: 'Courier New';">open txmt://open/?url=file://[YOUR  PATH
HERE]&line=0</span><br><font color="#0a51a1"><br><br></font><span style="font-family: helvetica, arial;">Thanks,</span><br><span style="font-family: helvetica, arial;"> </span><br><span style="font-family: helvetica, arial;">Graham
Heath</span><br><font color="#0a51a1"><br></font>On February 10, 2016 at 8:59:41 AM, Gary Ash
(<a href="mailto:gary.ash@icloud.com">gary.ash@icloud.com</a> )
wrote:<br><blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
















<br>Hello,<br>I’m working on textmate 2 command that will process data from a
file and insert some some information into the activate textmate
document<br>I’ve got the bulk of the job working pretty well except I’d like to
ensure the data is allows added to the top of the file. Can anyone
tell me how to ensure the cursor is at the top of the document
before I insert my data?<br><br>Thanks for any help<br>Gary<br><br>_______________________________________________<br>textmate mailing list<br>textmate@lists.macromates.com<br>
<div>
<div><span>
http://lists.macromates.com/listinfo/textmate</span></div>
</div>



</div></span></blockquote></body></html>