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
- 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/
- Run the snippet in the ExtendScript Toolkit (see Readme.txt).
- 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:
- Create the TabbedPalette and show it in Adobe Bridge.
- Manually arrange the workspace by placing the palettes in the desired positions.
- Save the workspace by choosing Window > Workspace > Save Workspace.
To load the saved workspace:
- Create a TabbedPalette with the same ID as originally used
- Load the workspace using Document.setWorkspace(workspaceID), with the same ID used to save it.
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 |
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
flashFile
File flashFile
The Flash movie to load into Bridge
requiredContext
String requiredContext
The context in which this snippet can run.
workspaceID
String workspaceID
The ID of the workspace to load
SnpLoadSavedWorkspace
SnpLoadSavedWorkspace()
canRun
Boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must run in Bridge
- The SWF file must exist in the file system.
Returns:
True is this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet. Creates the TabbedPalette that will be used
by the saved workspace and then loads the workspace.
Returns:
True if the snippet ran as expected, false otherwise
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010