Save currently open projects into `workspace`?

59 views
Skip to first unread message

Lea Hayes

unread,
May 18, 2012, 9:35:21 PM5/18/12
to bbe...@googlegroups.com
Hey guys!

Is it possible to save all currently open projects and documents into a custom "workspace" that can be easily reopened. I have a number of related projects that are always opened together.

If there is not built-in feature to achieve this, is there a way to add this functionality? It would drastically improve my workflow.

Many thanks

Christopher Stone

unread,
May 22, 2012, 9:03:00 PM5/22/12
to BBEdit Talk Talk
Hey Lea,

On May 18, 2012, at 20:35, Lea Hayes wrote:
Is it possible to save all currently open projects and documents into a custom "workspace" that can be easily reopened.

No.  If you read the manual on 'Workspace' this is only a set-up of palettes (unfortunately).

BBEdit already has a mechanism in place to save its state (on quit), so it ought not to be too difficult to write the code for the user to manually save-state.  I suggest you contact support and request the feature.

I have a number of related projects that are always opened together.

That in and of itself is easy to achieve with Applescript.

If there is not built-in feature to achieve this, is there a way to add this functionality? It would drastically improve my workflow.

set projList to items 1 thru -2 of
alias "yourDiskName:Users:yourUserName:Documents:BBEdit Documents:Test_1.txt", ¬
alias "yourDiskName:Users:yourUserName:Documents:BBEdit Documents:Test_2.txt", ¬
alias "yourDiskName:Users:yourUserName:Documents:BBEdit Documents:Test_Project.bbprojectd:", ¬
""}

tell application "BBEdit"
activate
open projList opening in separate_windows
end tell

The fun part is compiling the items for the configuration.  This can be easy or difficult depending upon what kind of windows you have open and whether or not there are unsaved documents.

--
Best Regards,
Chris

Charlie Garrison

unread,
May 22, 2012, 10:58:16 PM5/22/12
to bbe...@googlegroups.com
Good afternoon,

On 18/05/12 at 6:35 PM -0700, Lea Hayes <leah...@gmail.com> wrote:

>If there is not built-in feature to achieve this, is there a
>way to add this functionality? It would drastically improve my workflow.

I used to use scripts for this. Once the 'saved state on quit'
was implemented I had very little use for these scripts.

Note, the scripts are quite old and there will be new window
types that may not be supported. You should be able to adjust
the scripts for modern BBEdit.

The Workplaces script is just a placeholder for all the saved
workspace configs. The other 3 scripts save/load workspaces. You
will probably need to adjust the path at top of each script.


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt
30)Windows.zip
Reply all
Reply to author
Forward
0 new messages