Copy link to clipboard
Copied
I'm trying to create a step by step walkthrough in Javascript to show how to create a new document within Photoshop CC 2015. The main steps are;
Drop down the File menu.
Select New
Select Document type
Create Document.
Ideally I'm trying to create individual steps and not automate as I want to show each step. I think it would probably have to be made from 4 different js files.
Let me know if you have any questions.
Cheers,
Mark
Copy link to clipboard
Copied
Create a document or do you actually mean open an image file and if open what kind of image file. Different image formats have different open options. And RAW file would be opened through ACR.

Copy link to clipboard
Copied
Hi, thanks for your response,
I literally mean. when the user runs a script the file menu drops down.

Copy link to clipboard
Copied
First you need read Adobe Scripting Guide and Adobe DOM Javescript reference and understand the need for Adobe Scriptlistener Plug-in and what Action Manager Code is about. I do not know javascript but I can hack at Photoshop Scripts. You need to also be able to look at Photoshop scripts and be able to figures out what they are doing.
What you seem to want to do is show how Action manager code may be used perhaps. There is no dialog need to create a document. Photoshop UI has a Dialog so a user can set size,resolution, color depth, canvas type transparent or background color color space etc. ,
A script can create a UI interface using code to create UI dialog, using Adobe ScriptUI support, Adobe does not provide a DOM UI for a new document you would need to program one of use Action Manager code.
Use code to use a Photoshop menu item. it would not be the file menu you show it wold be the New Document Dialog or prehaps the ned New Document Workspace.

Copy link to clipboard
Copied
I'm mediator for JAVASCRIPT and jQuery.
I want to learn Photoshop Script.
Please guide me where from I should learn it.
i.e. Tutorials or Tutorial Videos.
-Thanks
Copy link to clipboard
Copied
There are a few tutorial on the web to help you start. However there are not many dedicate Photoshop Scripting resources online. This forum is one of the best resources you will find.
Someone that look in here will help with any question you have. There is a lot of sample code posted in the forum dealing with users request for help. Reading others Photoshop script and hacking on them is a good way to start. Not all code posted is perfect or does exactly what you may want to do/ Bend them and fix them for what you want to do. Ask for help when you are stuck.
Google search for Photoshop scripts that do what you may want to do. Often you can find some the come close to what you want to do. Most will be saved as text not binary so you can read and hack on most.
Look for Xtools and also read up on the scriptlistener plug-in and action managers code. Adobe DOM doe not cover all Photoshop features. There is very little step by step info online look for Trevor two scripting tutorials he provides some good guideline and incites for scripting Photoshop and has many good example for you to learn from.
Copy link to clipboard
Copied
I would suggest using AppleScript and OS Events. I found this old article using the Finder application as an example. Other online searches might get you better results.
A better way to activate menu items from AppleScript - Mac OS X Hints
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more