Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Sep 05, 2018 Sep 05, 2018

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!

TOPICS
Actions and scripting
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Sep 05, 2018 Sep 05, 2018

Moved to Photoshop Scripting​

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 05, 2018 Sep 05, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2018 Sep 05, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 05, 2018 Sep 05, 2018

Could you link us to your extensions website?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2018 Sep 05, 2018

Hi Kukurykus

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 05, 2018 Sep 05, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2018 Sep 05, 2018

Hi

Thanks for reply. I have this code in Photoshop.jsx and I am calling this on extension load in ext.js. I tried the same code that you have shared

load(new File("changed path.."));
 

Then also I am getting this fluctuationin photoshop. I have recorded it while running the same code from extend script. Please have a look.

Thanks,
Ishita

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 05, 2018 Sep 05, 2018

Try running Photoshop.jsx through Menu->File->Scripts->Browse.


If it's ok, the case is in your extension.


If flashing, try disabling all extensions in Edit->Prefeneces->Plug-ins->Load Extension Panels->Uncheck it.

Restart photoshop. Run the script,

If it does not blink, then the trouble is in yours or some other extension. I do not use extensions, so I can not help.


If it flashes in the latter case, try disabling the "Use Graphics Processor".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2018 Sep 05, 2018

Hi

Thanks for the revert.
I tried to run script directly in Photoshop through Menu->File->Scripts->Browse.I got the same issue.

Then I disabled Load Extension Panels in Edit->Prefeneces->Plug-ins->Load Extension Panels->Uncheck it and ran the script again. This fluctuation got off. But then Extensions menu became disabled and I will not be able to use my extension. So then this is of no use to me, if I am not able to use extension.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 05, 2018 Sep 05, 2018

OK. Try uncheck If it turned on Edit-> Preferences->General->Show Start Workspace When No Documents Are Open.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 06, 2018 Sep 06, 2018
LATEST

Hi r-bin

I tried this and it didn't worked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 05, 2018 Sep 05, 2018

Ah I assumed it may be paid extension...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines