The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniWeb General (http://forums.omnigroup.com/forumdisplay.php?f=8)
-   -   AppleScript: Set Active Workspace (http://forums.omnigroup.com/showthread.php?t=7579)

dennisffm 2008-03-23 04:38 AM

AppleScript: Set Active Workspace
 
I use OmniWeb along with LaunchBar. I thought it would be kind of nice to open a specific OmniWeb workspace from Launchbar.

To this end I tried to write an AppleScript program that would activate Omniweb and open a specific OmniWeb workspace. Such AppleScript program could be launched from Launchbar.

Even though Omniweb's Manual says that Omniweb's AppleScript support includes setting the active workspace, I can't find a way to do so.

Could anyone help me out on this? Many thanks.

JKT 2008-03-23 06:14 AM

I don't know anything about AppleScript, but if you can script opening of files in the Finder, an alternative approach would be to create a script that opens the workspace(s) in the [B]~/Library/Application Support/OmniWeb 5/Workspaces[/B] folder.

dennisffm 2008-03-23 12:12 PM

Jonathan, many thanks for the hint.

I added a new indexing rule in LaunchBar which scans the ~/Library/Application Support/OmniWeb 5/Workspaces folder. As a consequence, I can now open specific workspace files from within LaunchBar without using AppleScript. This is even better than I thought.

Thanks again!

JKT 2008-03-23 12:18 PM

No problems, but it just occurred to me that you might hit a slightly annoying bug using this method. If you launch OmniWeb by double-clicking a Workspace in the Finder: the first time you try to switch to a different Workspace using the [B]Workspaces[/B] menu, it will cause the first one opened at launch to suddenly reload (you'll get a blank Workspace list under the menu as well). This only happens the first time you do this per session, otherwise it will work fine.


All times are GMT -8. The time now is 06:44 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.