Skip to main content
Inspiring
October 26, 2011
Answered

Workspace Events

  • October 26, 2011
  • 1 reply
  • 944 views

The Bridge CS5 javascript reference manual mentions the workspacesPreLoad as one of a documents type of event objects, and this is where you should load your custom tabbed palette.

1. It does not fire for me -- I would like to load my custom flash panel in a workspace like the documentation states

2. When a user clicks on a workspace, is there any way to know which workspace was selected by the user?

Thanks, T

This topic has been closed for replies.
Correct answer tstorb1

I found, by accident, that the workspacesPreLoad event does fire in CS5 -- but not while running from inside Extendscript Toolkit.  If you run your script in startup scripts - it fires.  Like you said, seems this worked in EST in CS4, maybe need to set $.debug setting now.

Anyway. It works fine.

Thanks, Todd

1 reply

Paul Riggott
Inspiring
October 26, 2011

Interesting, I have found that it triggers in Bridge CS4 but CS5 does not see the event. This is what I tried...

#target bridge  
var workSpaces = function(event){ 
   if (event.type == 'workspacesPostLoad') {
       alert("loading my script....");
      return { handled: true};
  }
}
app.eventHandlers.push( { handler: workSpaces } );

It might be best to enter a bug with Adobe or at least post it on..

http://feedback.photoshop.com/photoshop_family/topics

where it will get a better response.

Sorry but I don't know of a way of knowing when a user selects a workspace.

tstorb1AuthorCorrect answer
Inspiring
October 30, 2011

I found, by accident, that the workspacesPreLoad event does fire in CS5 -- but not while running from inside Extendscript Toolkit.  If you run your script in startup scripts - it fires.  Like you said, seems this worked in EST in CS4, maybe need to set $.debug setting now.

Anyway. It works fine.

Thanks, Todd

Paul Riggott
Inspiring
October 30, 2011

Thanks for the info.