On 4/10/20 at 8:32 PM,
bbe...@googlegroups.com ('John Love' via
BBEdit Talk) wrote:
>Using an external Script, I am trying to select a pre-named
>BBEdit file in the left Pane, so that the selected file opens
>in the right Pane.
The "open" command refers a reference to the document just opened.
The "select" verb is not appropriate for use on files; it will
only work on "document" objects.
This (or something like it) ought do what you want:
tell app "BBEdit"
set openedDocument to (open POSIX file
"/path/to/some/file.txt") -- substitute your actual file path here
select openedDocument
end tell
R.
--
Rich Siegel Bare Bones Software, Inc.
<
sie...@barebones.com> <
https://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.