ShortcutButtons.jsx

Summary

The script contains two functions to add a new document and to close the foremost document in Adobe Photoshop. This script is to be used by a SWF file called ShortcutButtons.swf created through Adobe Flex.

Author: John Huan Vu, Photoshop Engineering Intern, Adobe Systems Incorporated


Method Summary
static void addDocument()
           Create a new document within Adobe Photoshop.
static void closeDocument()
           Close the active document within Adobe Photoshop.

/**************************************************************************
	ADOBE SYSTEMS INCORPORATED
	 Copyright 2008 Adobe Systems Incorporated
	 All Rights Reserved.

	NOTICE:  Adobe permits you to use, modify, and distribute this file
	in accordance with the terms of the Adobe license agreement accompanying
	it.  If you have received this file from a source other than Adobe, then
	your use, modification, or distribution of it requires the prior written
	permission of Adobe.
**************************************************************************/

/**
	Name: ShortcutButtons.jsx
	@author John Huan Vu, Photoshop Engineering Intern, Adobe Systems Incorporated
	@fileoverview The script contains two functions to add a new
			document and to close the foremost document in
			Adobe Photoshop. This script is to be used by
			a SWF file called ShortcutButtons.swf created
			through Adobe Flex.
*/

/**
	Create a new document within Adobe Photoshop.
*/
function addDocument(){
	app.documents.add();
}

/**
	Close the active document within Adobe Photoshop.
*/
function closeDocument(){
	app.activeDocument.close();
}


Documentation generated by JSDoc on Wed Sep 3 16:09:11 2008