On 4/10/20 at 8:32 PM, bbedit@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.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-2749F2997CDB4ED5AAD095F67C60F50E%40Stormwind.local.