how to run a js file after launching photoshop

Hi all

I am just curious to how I go about running a javascript file after opening photoshop. The plugin Joseph made that sends renders to photoshop is a good example. I am assuming you will have to do a dll file but not to sure how to go about it in a clever and multi OS way.

Any suggestions will be really helpful.


I think that plugin is using the ZFileUtils dynamic library to open the file with the default application (JSX files need to be set to open in Photoshop CC by default). So you would use the LaunchAppWithFile function but without specifying the application:


Thanks Marcus, was definitely heading in that direction. Will give that a shot most definitely!