On 14 Apr 2021, at 18:28, Rich Siegel wrote:

This should work:

        tell app "BBEdit"
                activate
                open file_path
                select insertion point after last character of document 1
        end tell

(It's best to always target documents, rather than windows; though that's not the proximate issue here. "document 1" is always the active document.)

Thank you! I'm trying to get back into AppleScript to do some automation ... and I've forgotten most of what I knew about AS.

= jem

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4E953304-6E3D-45BD-9062-442DFD519E3B%40mostrom.pp.se.

Reply via email to