Skip navigation
diegomonzon
Currently Being Moderated

Trigger script from HTML

Oct 30, 2011 9:18 PM

How can I trigger an external script file located in the "Plug-ins/Panels/pannelName/content/panelName.asets/" folder , from an HTML inside my panel?

 

What should the link look like?

 

I found this thread http://forums.adobe.com/thread/663118 but this only works for the scrips folder inside photoshop ( Adobe Photoshop CS5 / Scripts)

 

<a href="adobe://photoshop.cs5/Scripts/script's name">your link name</a>

 

thanks in advanced

 
Replies
  • Currently Being Moderated
    Oct 30, 2011 9:23 PM   in reply to diegomonzon

    You can't do that, this is a limitation for security. (We assume only administrator can copy file to your photoshop folder.)

     

    But, if you own the panel, you may add some script to the panel's onInit event to copy your script file to photoshop's script folder.

     

    Or install the script file to photoshop folder manually.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2011 7:08 AM   in reply to diegomonzon

    You should :

     

    1 ) configure the mxi file adding:

    <file source="NameOf yourScript.jsx" destination="$scripts" file-type="ordinary" />

     

    between the tags <files> here   </files> 

     

    2) place the script file near the mxi file.

     

    3) package the extension to create the installer.

     

    This way the script file will be automatically placed inside photoshop script folder by the installer

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 4:02 AM   in reply to diegomonzon

    Configurator 3.1 is already available for download at Adobe Labs. With this release, you can run your script file with HTML with the funciton _AdobeInvokeScriptFile(scriptFilePathRelativeToAssetsFolder);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points