Skip to main content
New Participant
April 1, 2012
Answered

How to add scripts to File->Scripts

  • April 1, 2012
  • 5 replies
  • 106489 views

I plan to add scripts to Photoshop File->Scripts menu items. Or some other convenient mothed to invoke my script. How could I do it?

This topic has been closed for replies.
Correct answer c.pfaffenbichler

Just put the jsx-files into the Presets > Scripts-folder.

After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action or (in CS4 and CS5) be used in a Configurator-Panel.

Configurator buttons can either refer to a Script or contain its code.

5 replies

grendizerus
Known Participant
January 23, 2017

Hello, please help! I'm trying to run a VBS script from within Photoshop! I know I should start the VBS script by a JSX script, but I can't find the right command for that! Thanks in advance,

David

SuperMerlin
Inspiring
January 23, 2017

var myvbs = new File ('/c/wherever/myvb.vbs');

myvbs.execute();

grendizerus
Known Participant
January 24, 2017

Thanks for the help. But it doesn't work. the jsx file executes itself, but then the vbs script is not launched.

Another question: if both scripts are in the same folder, is it necessary to write the full path of the vbs file inside the jsx code?

Thanks

G

MR74270
Inspiring
June 10, 2015

Hi all,

I am on Windows 7. All my scripts are in the same folder (c:\Photoshop Scripts).

Every script begins as follow :

// MAC Finder or WINDOWS Explorer  double clic enabled

#target photoshop

app.bringToFront();

I launch my scripts with links created in a desktop folder. JSX extension is associated to Photoshop. Nothing else to do. The scripts open Photoshop. I never use any browser.

Excuse my poor English.

Inspiring
April 2, 2012

If you're on Windows 7, you can drag the script file over your Photoshop icon on the taskbar to "pin" the script to the right-click menu for Photoshop.  Any time you would need to run it, just right-click the icon on the taskbar and select the script from the "Pin list".

JJMack
Community Expert
April 1, 2012

If your on windows you can add a link(Windows Shortcut) to Adobe Photoshop Presets\script\ folder to your Phtoshop Scripts tree to link Photoshops script path with your script tree to keep your scripts sepreate from Adobe scripts.  Photoshop will includ your Scripts, Plug-ins Scripts and Help in it File>Scripts> List, File>Automate>List and Help>About Plug-ins>List is like adding an additional Plug-in path to Photoshop Preferences. 

JJMack
grendizerus
Known Participant
January 24, 2017

Hello, I'm trying what you said. Should the Windows Shortcut be inside the C:\Program Files\Adobe\Adobe Photoshop CC 2015\Presets\Scripts folder?

Thanks

David

New Participant
August 1, 2018

yes

c.pfaffenbichler
c.pfaffenbichlerCorrect answer
Community Expert
April 1, 2012

Just put the jsx-files into the Presets > Scripts-folder.

After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action or (in CS4 and CS5) be used in a Configurator-Panel.

Configurator buttons can either refer to a Script or contain its code.

February 15, 2016

worked like a charm. Thank you

February 22, 2016

I have just started using photoshop cc 2015 and now am getting an

error 1302 No Such Element

Line 21

->var doc = activeDocument

Worked great when I was using PS CS3