Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The straight answer is <strong>YES</strong>. Illustrator, InDesign and Photoshop can all be scripted through COM. Any program that you make that can access COM (such as a .net language, C++, BCX, Autohotkey or Powerpro) can tell Illustrator, InDesign or Photoshop to do things. </p> <p>Here is an example for <a href="http://powerpro.cresadu.com/" rel="nofollow noreferrer">Powerpro</a>(you will need powerpro's com plugin), and this works in CS4 and CS5:</p> <pre><code>Function ComLoad() ;;MAKE SURE TO CALL .@ComUnload WHEN EXITING FUNCTION CALLS! static objname="Illustrator.Application" static com_status, com_type static appRef=com.create_object(objname) endfunction Function ComUnload();;this is end the com calls and unload com com.unload endfunction </code></pre> <p>After you use the ComLoad() function, you then run any kind of method or function offered by the COM library. Here is how to use Powerpro to tell Illustrator to run your jsx or js file:</p> <pre><code>;Run a script from anywhere Function RunOtherScript(whatscript) If (file.Validpath(whatscript) == 0)do messagebox("ok","Whoops! That script doesn't exist!","ILL Runscript") quit endif .@ComLoad() appRef.DoJavaScriptFile(whatscript) .@ComUnload() quit </code></pre> <p>Here is an image of a floating toolbar that I made using Powerpro. The buttons are all attached to com functions. Most of the time I use the com functions to run external jsx scripts.</p> <p><img src="https://i.stack.imgur.com/OGNYI.png" alt="enter image description here"></p> <p><strong>[edit]</strong></p> <p>There is another way! You can use the Adobe Configurator to create new panels which are capable of launching scripts. You can design the panel in any way you like, and the results are quite similar in effect to the powerpro toolbar I've described above. In fact, I moved from the powerpro toolbar to an Adobe Configurator Panel.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload