Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Moved to Photoshop Scripting​
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
It is like Photoshop fluctuates like something gets on/off. And if any panel is open it gets closed and photoshop is refreshed.
Copy link to clipboard
Copied
Could you link us to your extensions website?
Copy link to clipboard
Copied
Hi Kukurykus
I don't have any link. But have shared the exact code that I am using.
Copy link to clipboard
Copied
Using where? In JSX file that you run or in some kind of extension.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
OK. Try uncheck If it turned on Edit-> Preferences->General->Show Start Workspace When No Documents Are Open.
Copy link to clipboard
Copied
Hi r-bin
I tried this and it didn't worked.
Copy link to clipboard
Copied
Ah I assumed it may be paid extension...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more