Class SnpOpenInPhotoshop
Object
|
+--SnpOpenInPhotoshop
- class
SnpOpenInPhotoshop
Shows how to use the cross-DOM to open a file selected in Bridge
in another Adobe application.
Usage
- Open the snippet in the ExtendScript Toolkit (see Readme.txt).
- Make sure both Adobe Bridge CS5 and Adobe Photoshop CS5 are running
- In Bridge select a single thumbnail representing a file that
Photoshop can load (such as JPG, GIF, PSD)
- When you execute the snippet, you should find the file opened in Photoshop.
Description
The selected file in Bridge will be opened in Photoshop and saved as a JPEG file with a prefix of 'snp'. If a folder is
selected the script will not run.
Defined in SnpOpenInPhotoshop.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpOpenInPhotoshop
SnpOpenInPhotoshop()
canRun
Boolean canRun()
Determines whether snippet can be run given current context. The snippet will
fail if these preconditions are not met:
- Must run in Bridge
- Must be at least one file selected in Bridge
- Photoshop must be running
Returns:
True if this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Sends a selected file from Bridge to Photoshop for editing, using a cross-DOM function.
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