Re: functions list of the current file

2023-12-11 Thread Rich Siegel
On 11 Dec 2023, at 19:43, 'Dmitry Markman' via BBEdit Talk wrote:

> Hi
> how I can get functions list of the current C++ source file?
>
> I wrote simple AppleSctipt
>
> tell application "BBEdit"
> set fl to functions list
> open fl
> end tell
>
> and that script opens floating window, but all properties related to text, 
> content are missings,
> so I can’t get text of the window and get function as a list (text)

The "functions list" application property is simply the scripting accessor for 
the Functions palette itself. I regret there is no access to individual 
functions in a file through the scripting model.

R.

-- 
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: 
--- 
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/3309A6F5-8F1D-4470-8A2E-9A9D4F69D869%40barebones.com.


Re: Backing up the currently open files list

2023-12-11 Thread Rich Siegel
On 11 Dec 2023, at 22:08, 'Dan Nessett' via BBEdit Talk wrote:

> However, if
> I close BBedit by clicking on the Red button in the left-hand top corner,
> it prompts me to save any unsaved files and then when I open BBedit again,
> the previous currently open files list is no longer displayed.

BBEdit is a Mac application, and so you can have multiple windows open; and 
closing a single window does not automatically quit the application. So if you 
have a window with multiple documents in it, and you click the red close 
button, you're telling the application that you want to close all of the 
documents in that window.

> I would like to either: 1) change the behavior of BBedit so that closing it
> using the Red button doesn't cause it to remove all files from the
> currently open files list, or 2) figure out where in the BBedit
> configuration data the list of currently open files are listed, so I can
> save  the list. The second option would allow me to restore the currently
> open files list in case I mistakenly use the Red button to close BBedit.

You can use "Save as Project", which will create a BBEdit project document 
containing all of the files currently open in the window.

R.

-- 
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: 
--- 
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/3E1DDF27-6A78-48CB-A38E-C3B83B46BEAB%40barebones.com.


Backing up the currently open files list

2023-12-11 Thread 'Dan Nessett' via BBEdit Talk
When I use BBedit, it lists the currently open files on the left hand side. 
If I quit BBedit from the BBedit menu, the next time I open it, the 
currently open files from then previous session are displayed. However, if 
I close BBedit by clicking on the Red button in the left-hand top corner, 
it prompts me to save any unsaved files and then when I open BBedit again, 
the previous currently open files list is no longer displayed.

I would like to either: 1) change the behavior of BBedit so that closing it 
using the Red button doesn't cause it to remove all files from the 
currently open files list, or 2) figure out where in the BBedit 
configuration data the list of currently open files are listed, so I can 
save  the list. The second option would allow me to restore the currently 
open files list in case I mistakenly use the Red button to close BBedit.

-- 
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: 
--- 
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/f967a2f8-c661-453e-b301-a57804575fd7n%40googlegroups.com.


functions list of the current file

2023-12-11 Thread 'Dmitry Markman' via BBEdit Talk
Hi
how I can get functions list of the current C++ source file?

I wrote simple AppleSctipt

tell application "BBEdit"
set fl to functions list
open fl
end tell

and that script opens floating window, but all properties related to text, 
content are missings, 
so I can’t get text of the window and get function as a list (text)

{
ID:108, 
document:missing value, 
bounds:{1312, 430, 1597, 769}, 
closeable:true, 
collapsed:false, 
index:15, 
modal:false, 
file:missing value, 
modified:false, 
name:"Functions”, 
position:{1312, 430}, 
resizable:true, 
selection:missing value, 
contents:missing value, 
text:missing value, 
titled:false, 
visible:false, 
zoomable:true, 
zoomed:false, 
container:current application
}

thanks in advance

dm

-- 
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: 
--- 
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/16637AB8-E225-477A-8D96-9FDABAA7E6D4%40mac.com.