I'm puttering around with a RealBasic project and have a particular need -- I need for it to be able to tell BBEdit to open a text file and jump to a particular line in the file. I've taken a quick look at the BBEdit Applescript directory and nothing obvious jumps out and hits me in the face, nor does Google bring much joy.

You've got a couple choices. Probably the simplest would be to use the command line tool:

bbedit /Path/To/MyCoolFile.cp:34

If you need to use AppleScript, you could do it like this:

do shell script "bbedit /Path/To/MyCoolFile.cp:34"

If you can't count on the tool being installed, try this:

tell application "BBEdit"
    set d to open "/Path/To/MyCoolFile.cp"
    tell d to select line 5
end tell


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to