Plugin to extend JS functionality

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Patrick, Mike Hale, xbytor, Larry Ligon, Andrew, PS-Moderators

Plugin to extend JS functionality

Postby theiviaxx » Wed Feb 22, 2012 12:32 am

Hi all, is there a plug in type that would extend the JS functionality? We need to write out a zip file. While we could call out to some external script, we'd like to keep it inside PS if possible. I'm just not sure if the plugin sdk would have any access to extending JS. Maybe adding a new JS object type or something.

I found one pure js implementation of zip, but its based on a lot of html5 stuff :(

Thanks
theiviaxx
 
Posts: 31
Joined: Fri Aug 31, 2007 9:22 pm

Re: Plugin to extend JS functionality

Postby xbytor » Wed Feb 22, 2012 3:32 am

There is/was an C/C++ API for extending the JS API that would make it possible for you to add custom binary code to your JS scripts that you could could load in and execute as a part of your script. When I first looked at it, there were some severe shortcomings. I cut my teeth on extending TCL and perl with C-libs when I was younger and took a crack at it with PS-JS. It just wasn't worth the effort for me. I recommend that you do get the APIs/libs and try it out. They may have fixed the problems that I came across.
xbytor
Site Admin
 
Posts: 2286
Joined: Thu May 19, 2005 12:11 pm
Location: In Limbo

Re: Plugin to extend JS functionality

Postby larsen67 » Wed Feb 22, 2012 12:51 pm

This kind of stuff is well beyond my scirpting… but I did see this some time back in the Indesign forum… It looks along the lines of this discussion…?

http://extendables.org/docs/#
larsen67
 
Posts: 445
Joined: Sat Apr 25, 2009 3:01 pm
Location: Pickmere, Cheshire UK


Return to Photoshop Scripting - General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron