PReS Execute Script

Posted by: DGlaister

PReS Execute Script - 08/18/14 03:20 AM

I have been asked to convert a PlanetPress process to +PReS Enhance project.

In my PlanetPress process I create a multiline text file using javascript that creates a verification file for our mail insertion machinery, this takes the relevant information from the metadata (address, sheets in document etc).

Using JavaScript in PlanetPress I would create this with code similar to:

var FSO = new ActiveXObject("Scripting.FileSystemObject");
fileOutput=FSO.CreateTextFile(“C:\\Test\\Test.txt”);
fileOutput.WriteLine(“Test”);
fileOutput.Close();

When I use similar code in the PReS 'Execute Script' component I get errors, for instance "ActiveXObject cannot be resolved to a type".

Could you give me an example of creating a file using the PReS Execute Script component?

I am using a trial version of +PReS Enhance Designer Version 2.4
Posted by: evelynguerrero

Re: PReS Execute Script - 09/15/16 01:14 AM

This is very helpful for the people. I am a student and i am busy with my academic work .I got the guidelines from the internet and other resources for completing my academic work. I search and find new resources for my writing. Without good guidelines and information we cannot write the article, academic work. I hope i will get new ideas from this forum.