AdobeBridgeCS5SDK

Class SnpLoadSavedWorkspace

Object
   |
   +--SnpLoadSavedWorkspace

class SnpLoadSavedWorkspace


Shows how to load a previously saved workspace, which you have copied to the appropriate location for saved workspaces.

Usage

  1. Copy the workspace file SDKINSTALL/sdksamples/javascript/resources/BridgeSDKCustomWSpace.workspace to the default location for saved workspaces:
          In Windows: - C:\Program Files\Common Files\Adobe\Bridge CS5 Extensions\Workspaces
          In Mac OS: /Library/Application Support/Adobe/Bridge CS5 Extensions/Workspaces/
    
  2. Run the snippet in the ExtendScript Toolkit (see Readme.txt).
  3. Loads the previously saved workspace into Adobe Bridge, which uses a a tabbed palette to show a Flash movie in the center of the browser window.

Description

Loads a previously saved workspace into Adobe Bridge. The saved workspace in this snippet uses a tabbed palette to show a Flash movie in the center of the browser window. For this snippet to run, you must copy the workspace file to the workspaces folder as described above.

This sample recreates the palette that contains the Flash Player,using the same ID that was used to create it originally, and loads the movie that is shown in that component. It then loads the workspace by calling Document.setWorkspace(), passing in ID with which the workspace was saved.

To save a workspace with your own custom palette:

To load the saved workspace:


Defined in SnpLoadSavedWorkspace.jsx


Field Summary
 File flashFile
          The Flash movie to load into Bridge
 String requiredContext
          The context in which this snippet can run.
 String workspaceID
          The ID of the workspace to load
 
Constructor Summary
SnpLoadSavedWorkspace()
           
 
Method Summary
 Boolean canRun()
           Determines whether snippet can be run given current context.
 Boolean run()
           Functional part of this snippet.

Field Detail

flashFile

File flashFile

requiredContext

String requiredContext

workspaceID

String workspaceID

Constructor Detail

SnpLoadSavedWorkspace

SnpLoadSavedWorkspace()

Method Detail

canRun

Boolean canRun()

run

Boolean run()

AdobeBridgeCS5SDK

http://www.adobe.com/devnet/bridge
Documentation generated by JSDoc on Tue Apr 27 10:21:34 2010