[Semi-OT] Execute Javascript for Acrobat

Bob Sneidar bobsneidar at iotecdigital.com
Fri Mar 13 16:35:31 EDT 2015


As it turns out, there is no way in Windows to send commands to Adobe Acrobat, telling it to run a Javascript. And while there are tools for development systems like Java and C++ to do so, there is no shell method to do so. So apparently I will be stuck creating FDF files for the Windows environment. It would have been nice if Livecode had a way to directly communicate Javascript to other applications using the methods available, as it can with Applescript, but now that the widget architecture is on the way, perhaps someone will develop one. 

Bob S


> On Mar 4, 2015, at 08:56 , Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> Hi all. 
> 
> I know there are people on the list who know if this can even be done, and if so, how to do it. Presently to have a PDF fillable form open and auto-fill with data, I must first set the PDF form up to import an FDF file upon opening, and secondly I must create an FDF file for it to import, populated with the values I want. 
> 
> All this I have working, but I have developed a method for doing this directly from within my LC app without resorting to FDF files, but *only* for the Mac. I want to also develop a method for use in Windows. But since Windows has no built in equivalent to Inter-Application Communications (IAC otherwise known as Applescript) I am wondering if there is a way to do this via a shell command. I can execute Javascript alright by using wscript.exe, but how to get the message to Acrobat or Reader?
> 
> Bob S
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list