Search found 12 matches

by foxpalace
Mon Nov 05, 2012 6:35 am
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Hi - that is now my ready Script. It works for me and I know it could be better (for example OutPutFolder of PDF-Merge). What did the Flow: 1. Rotate Pages 180° (Callas kfpx) 2. Split-PDFs (Callas Action) 3. Rebuild the Pages -> Merge backwards (the Script) Now I can place the new PDF to an other on...
by foxpalace
Sun Nov 04, 2012 12:01 pm
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Solved: The error was the array - now I build the cli manually: var String befehl = ""/Applications/callas pdfToolbox Server 6/cli/pdfToolbox"" + " " + "--mergepdf" + " " + "-o=/Users/michael/Desktop/bitburg/test/bla.pdf" + " " + ...
by foxpalace
Sun Nov 04, 2012 11:15 am
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Hi Peter, thank you, but I get the same Error: 29> var theExitCode = Process.execute(args); 30> var thestdOut = Process.stdout(); 31> var thestdErr = Process.stderr(); 32> s.log(1, "test: " + theExitCode); 33> s.log(1, "Out: " + thestdOut); 34> s.log(1, "Err: " + thestd...
by foxpalace
Sat Nov 03, 2012 9:30 am
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Hi dkelly,



can you give me an example of Process.stdout and Process.stderr?

I only get: TypeError. 'stdout' undefined or not a function



Gruß

Michael
by foxpalace
Sat Nov 03, 2012 8:21 am
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Hi dkelly, I could see, what my problem is: I use Mac OS X 10.8.2, Switch 11 Update 2 I can call a program with process.execute when there are no spaces in file-/foldername. I tried to escape the spaces with but no reason. I think I have to call enfocus for this - I could reproduce this on two machi...
by foxpalace
Fri Nov 02, 2012 9:51 am
Forum: Scripting
Topic: question about Process.execute
Replies: 9
Views: 6845

question about Process.execute

Hi, I have written a little script which calls on end Process.execute. As I am a absolute beginner in scripting I can't 'debug' the Process.execute - the only log: s.log(1, "bla: " + Process.execute(args) gives me only: bla: 103 Here is the content of args: args: /Applications/callas pdfTo...
by foxpalace
Mon Sep 10, 2012 7:51 am
Forum: Flows
Topic: Assemble Job performance
Replies: 6
Views: 4186

Assemble Job performance

Hi - I use Assemble Jobs with Ungroup Jobs - i can get results with more than 1000 Files to assemble. The time to assemble is more then three hours :(
by foxpalace
Thu Aug 02, 2012 7:59 pm
Forum: Scripting
Topic: Using data from MySQL via ODBC
Replies: 5
Views: 8377

Using data from MySQL via ODBC

Hi dkelly,



thank you - I get an result with getString, but only the first digit:



maybe the result is: 2012

i get only: 2



Can you help?
by foxpalace
Mon Jul 09, 2012 8:12 pm
Forum: Scripting
Topic: Using data from MySQL via ODBC
Replies: 5
Views: 8377

Using data from MySQL via ODBC

Hi Robert,



there is now getColumnValue in PowerSwitch 11 and the Docu isn't much helpful.

Can you tell us, how to get a result from a query (select bla,bla1,bla2 from table where bla = 'bla';) so that I can read the result with s.log?



Gruß

Michael
by foxpalace
Tue May 29, 2012 2:26 pm
Forum: Scripting
Topic: Week of Year
Replies: 1
Views: 1917

Week of Year

Hi, I misted some times the function YearOfWeek in Enfocus-Scripting, so i write once for it. Here the result for all of the users: function jobArrived( s : Switch, job : Job ) { var DatumAktuell = new Date(); var DieseWoche = ""; var Jan1 = new Date(DatumAktuell.getYear()); var DiesesJahr...
by foxpalace
Mon Dec 05, 2011 8:33 pm
Forum: Scripting
Topic: Copy file to folder-script?
Replies: 1
Views: 2644

Copy file to folder-script?

here is a example - you had to modify it, but it should show the way function jobArrived( s : Switch, job : Job ) { var pfad = job.getPath()+"/Bilder/"; var myDirectory = new Dir(pfad); var source = myDirectory.entryList("*.jpg", Dir.Files, Dir.Name); for (var i = 0; i < source.l...
by foxpalace
Mon Dec 05, 2011 8:18 am
Forum: Scripting
Topic: new Dataset for UngroupJob
Replies: 3
Views: 3232

new Dataset for UngroupJob

Hello, i have a problem with ungroupjob - i get a folder within pdf-files in a extra folder. so i use ungroupjob to preflight the pdf-files. If the Preflight reports a error, i would like to use a extra html-outputfile with log-information. Now it is clear, that the job can't assemble correct, becau...