Class SnpCreateWebTabbedPalette
Object
|
+--SnpCreateWebTabbedPalette
- class
SnpCreateWebTabbedPalette
Shows how to create a TabbedPalette that shows a Web page.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt), with Adobe Bridge CS5 as the target.
- You should see a new tabbed palette added to the default top-left position.
- Try dragging the palette to the Content pane of Bridge; it should show the Adobe website.
Description
Adds a script-defined tab to all Bridge browser windows.
Creates a TabbedPalette object. The tab is of the "web" type,
and shows the Adobe home page. It could point to a HTML page
containing user-interface components; in this case,
you would need to make sure that the HTML file exists in the expected
location.
Adds the tab to existing Bridge browser windows, then defines
an event handler to listen for the creation of a new browser window,
and add the tab to it.
The new tab appears in the default upper-left palette in the browser.
See:
Defined in SnpCreateWebTabbedPalette.jsx
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
paletteRefs
Object paletteRefs
requiredContext
String requiredContext
The context in which this snippet can run.
SnpCreateWebTabbedPalette
SnpCreateWebTabbedPalette()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must be running in Bridge
Returns:
True is this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Creates the TabbedPalette object, pointing it to the Adobe home page.
Adds the tab to all open Bridge browser windows.
Defines and registers an event handler to listen for the creation of a
new Bridge browser window, then adds the tab to that window.
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