Skip to main content
Participating Frequently
September 5, 2018
Question

Load action in Photoshop using javascript refreshes Photoshop. Please guide.

  • September 5, 2018
  • 3 replies
  • 3206 views

Hi

I have created an Adobe Photoshop extension for Photoshop 2018. I need to run few actions and in order to do so I have placed actions in user specific presets folder for the application and on extension load I am loading actions in Photoshop. But when I execute the code to load actions in Photoshop, it refreshes photoshop after loading each action. I tried the same code from extension builder and got the same result.


Code used to load action :

strAppDataPath ->user specific app data path

app.load(new File(strAppDataPath + '/Adobe/Adobe Photoshop CC 2018/Presets/Actions/ABC.atn'));

Please guide. Its urgent.
Thanks!

This topic has been closed for replies.

3 replies

Kukurykus
Legend
September 5, 2018

Could you link us to your extensions website?

queryAuthor
Participating Frequently
September 5, 2018

Hi Kukurykus

I don't have any link. But have shared the exact code that I am using.

Legend
September 5, 2018

Using where? In JSX file that you run or in some kind of extension.

Legend
September 5, 2018

What do you mean when you say "it refreshes photoshop after loading each action"?

Everything is working well for me.

This code is executed in 0.05 seconds.

$.hiresTimer;

load(new File("F:\\Untitled.atn"));

load(new File("F:\\Untitled2.atn"));

load(new File("F:\\Untitled3.atn"));

//refresh()

alert("Done in " + ($.hiresTimer/1000000).toFixed(2) + " seconds", "Timer");

If you uncomment the line //refresh(), then execution takes place in 1 second.

queryAuthor
Participating Frequently
September 5, 2018

It is like Photoshop fluctuates like something gets on/off. And if any panel is open it gets closed and photoshop is refreshed.

Akash Sharma
Legend
September 5, 2018