Skip to main content
Participant
February 26, 2017
Question

Step by Step - Create a new document in Javascript for Photoshop CC 2015

  • February 26, 2017
  • 2 replies
  • 8126 views

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

This topic has been closed for replies.

2 replies

Tom Ruark
Inspiring
February 27, 2017

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

JJMack
Community Expert
Community Expert
February 26, 2017

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.

JJMack
Eccentric_worker5E53
Participant
December 21, 2017

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

JJMack
Community Expert
Community Expert
December 21, 2017

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.

JJMack