I am trying to figure out how to create HTML links to run scripts, like the configurator 2 manual talks about. The problem is, the code they supplied makes no sense in terms of HTML.
Photoshop. For example:
Call a menu item “New File”
<a href=enu item rmat to invoke features in Photoshop.er link
Call an action
<a href=action://photoshop.cs5/Action/My Action Set/MyActionNamehop.er linktion</a>
Call a customized or predefined script item under “Scripts” sub-menu <a href=uadobe://photoshop.cs5/Scripts/Image Processornder hop.er linkor</a>
Can someone elaborate, if they know, on how to get this to work properly.
Thanks,
Mike
This is a workaround.
You may create a script in script folder and write some code in this file to call script in your panel folder.
And you can user ExtensionManager to package them all into single .ZXP packet for easy deilver.
For example:
function callScriptInPanelFolder()
{
var scriptFile = new File(app.path + "/plug-ins/panels/mypanel/myscript.jsx");
$.evalFile(scriptFile, 30000);
}
HI Mikekrell151
I tried to figure out what you asked for , but at the moment I think that the only way is to run a script/ action that reside inside the panel or inside Pshotoshop
As an alternative it is possible to insert a script that will be executed automatically every time the panel is opened ( as an example to create a new document with your parameters ) or closed
Anyway me too i will keep toying around and see what is possible
I build this list, but it's experimental.
Please forgive me, if some one is broken, since maintain a big list like that is very hard.
Cool, thanks! Now I can run a script from HTML.
However, I'm wondering as well...
1. Can I pass any parameters to the script?
2. Can anything I do in Photoshop send anything back to the HTML page?
3. Does any of this work in InDesign?
John Nack implied this was the case with his blog comment "Just like FP, WebKit will be able to send commands to the host app's scripting system." I would like to use the webkit form of the panel to control InDesign/Photoshop as directly as we can do with Flash-based CS Extensions built with the CS Extension Builder (i.e., imagine if the AJAX form of AIR could be used for extensions instead of just the Flash form of AIR). A single script is a step forward and has some viable use, but it would be most cool to be able to use HTML-based panels to directly work with the host application. It would appear the underpinnings may be there for this, but hard to find out for sure if this is the case.
Referring to JN's blog (http://blogs.adobe.com/jnack/2010/06/help_a_brother_out.html), I really never tried to go deeper in the question, but it could be a really interesting thing to have such possibility
as well as the possibility to send a parameter to a script ( at the moment not implemented Configurator 2)
I'm sure that who is working officially on the project can answer you deeper about your questions
Configurator is ,IMHO ,a very practice, faster and simplest way do things and I hope Adobe will give this project so many resources it needs
Never tried before in Indesign I will give a look later ( if not other answer arrives before)
I'm Sorry to say that I tried some html links to Indesign but nothing happened and also the Adobe Configurator pdf refers to this option as " Call a Photoshop menu item in HTML widget as a hyper link"
At this point I believe this feature is available only for Photoshop and not yet implemented in Indesign.
North America
Europe, Middle East and Africa
Asia Pacific