Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: calling perl functions from javascript

by john_oshea (Priest)
on Jan 27, 2007 at 12:46 UTC ( #596869=note: print w/replies, xml ) Need Help??


in reply to calling perl functions from javascript

Application.doScript appears, at first glance, to be a possibility. From the documentation (for InDesign CS2, but I'd imagine Photoshop to be similar):

    Runs a script. The script can be either a file or a string.

The obvious downside to this is that it will only run AppleScript, JavaScript or VBScript scripts, not any arbitrary language. That said, you could probably hack something together on a Mac by calling an AppleScript which then called your Perl code directly. Passing data back and forth would probably be best described as 'icky', but it should be possible. I'm not sure if VBScript has similar external access for Windows systems.

Hope that helps.

  • Comment on Re: calling perl functions from javascript

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596869]
help
Chatterbox?
[1nickt]: choroba Updated the PR, using Config instead of exposing the hackery. Using cpanfile-dump does not work to test, as shown in the earlier PR comment, even when using a binary built for a particular Perlbrew perl, the output seems to be
[1nickt]: ... from the system perl binary. Using cpanm --installdeps . does use the expected perl and tus the check acts correctly.
[choroba]: Nice, thanks. I'll look into it later, about to leave ATM.
[1nickt]: Aye-aye cap'n 🖖

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-10-18 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (249 votes). Check out past polls.

    Notices?