Switching to project unix worksheet when in project

79 views
Skip to first unread message

Todd Ingalls

unread,
Dec 17, 2023, 7:14:26 PM12/17/23
to bbe...@googlegroups.com
Hello
I am working using a project and when I have my project frontmost I would like to be able to switch to unix worksheet contained in the project. It seems there is not a command to do this and I am unsure if it is even possible from AppleScript. Just wanted to see if anyone had any suggestions for this.

Thanks

Todd Ingalls

Steve deRosier

unread,
Dec 17, 2023, 8:47:25 PM12/17/23
to bbe...@googlegroups.com
You can setup a key combo in Preferences.
BBEdit_Menus___Shortcuts_Preferences_and_g3_iperf_py_—_g3_hybrid_testing_and_ux_device_descriptors_c_—_Ux_Device_HID_CDC_ACM.png

- Steve


--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/314E1217-C1AB-4DF9-9398-3A92D968DCCC%40me.com.

Todd Ingalls

unread,
Dec 18, 2023, 8:52:35 AM12/18/23
to BBEdit Talk
Thank Steve. I guess I should have mentioned I tried that and it brings up just the introductory worksheet that  is located at ~/Library/Application Support/BBEdit/Unix Worksheet.worksheet 

Is it possible to open the Unix Worksheet that is in myproject.bbprojectd ?


Untitled.png


Steve deRosier

unread,
Dec 18, 2023, 2:36:40 PM12/18/23
to bbe...@googlegroups.com
Hm.  Yeah, I guess I assumed it opened the project's one if you're in a project.  And indeed you're right, it always opens the global, as does the scratchpad in that menu.  No clue how/if to make it open the project one. Did you look to see if there's an expert option to switch it? I didn't see one in my quick scan, but I didn't read through in detail.

Perhaps the BB guys will also jump on this thread, though you can catch them directly and maybe make a feature request using the sup...@barebones.com address; I've found they're very responsive to feature requests when they're easy to accomplish.

- Steve


jj

unread,
Dec 18, 2023, 3:03:41 PM12/18/23
to BBEdit Talk
Given that a worksheet named 'project.worksheet' exists in your project and that your project window is the front window,
this applescript should open it:

tell application "BBEdit"

   activate

   set vFile to file of first item of (documents of first project window whose name is "project.worksheet")

   open vFile opening in first project window with «class MdDa» and adding to recent list

end tell


HTH

Jean Jourdain

Todd Ingalls

unread,
Dec 18, 2023, 3:53:55 PM12/18/23
to bbe...@googlegroups.com
Great thanks that worked. For future reference I just needed to change the name of the worksheet so this is now working

tell application "BBEdit"

activate

set vFile to file of first item of (documents of first project window whose name is "Unix Worksheet.worksheet")

open vFile opening in first project window with «class MdDa» and adding to recent list

end tell

You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/iP-CTkMNxlE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/09787807-df5f-45e5-827b-ea132a02508fn%40googlegroups.com.

Chris

unread,
Dec 18, 2023, 7:33:10 PM12/18/23
to bbe...@googlegroups.com
I have a script that does something like that. 



--Chris(topher)?

On Dec 18, 2023, at 5:52 AM, 'Todd Ingalls' via BBEdit Talk <bbe...@googlegroups.com> wrote:

Thank Steve. I guess I should have mentioned I tried that and it brings up just the introductory worksheet that  is located at ~/Library/Application Support/BBEdit/Unix Worksheet.worksheet 

Is it possible to open the Unix Worksheet that is in myproject.bbprojectd ?


<Untitled.png>



On Sunday, December 17, 2023 at 8:47:25 PM UTC-5 Steve deRosier wrote:
You can setup a key combo in Preferences.
BBEdit_Menus___Shortcuts_Preferences_and_g3_iperf_py_—_g3_hybrid_testing_and_ux_device_descriptors_c_—_Ux_Device_HID_CDC_ACM.png

- Steve


On Sun, Dec 17, 2023 at 4:14 PM 'Todd Ingalls' via BBEdit Talk <bbe...@googlegroups.com> wrote:
Hello
I am working using a project and when I have my project frontmost I would like to be able to switch to unix worksheet contained in the project. It seems there is not a command to do this and I am unsure if it is even possible from AppleScript. Just wanted to see if anyone had any suggestions for this.

Thanks

Todd Ingalls

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/314E1217-C1AB-4DF9-9398-3A92D968DCCC%40me.com.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@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+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages