Search found 33 matches

by foxpalace
Tue Jan 19, 2021 1:54 pm
Forum: Node.js scripting
Topic: Text to XML using Node.js in Switch Scripter
Replies: 5
Views: 9237

Re: Text to XML using Node.js in Switch Scripter

Hi,
has your inputfile always the same structure?
by foxpalace
Mon Jan 18, 2021 12:52 pm
Forum: Node.js scripting
Topic: api call with https
Replies: 4
Views: 5334

Re: api call with https

Hi Freddy,
you made my day :)
I have to learn, to learn, to learn ...

Greetings Michael
by foxpalace
Sat Jan 16, 2021 2:45 pm
Forum: Node.js scripting
Topic: api call from flow
Replies: 6
Views: 8166

Re: api call from flow

Hi,
can you post, what you changed?
by foxpalace
Sat Jan 16, 2021 10:00 am
Forum: Node.js scripting
Topic: api call with https
Replies: 4
Views: 5334

api call with https

Hello, whats wrong with this script, when I execute the Script with nodjs on Terminal it works, when I transpile it, the api-call will never run in Switch???? const https = import('https'); async function jobArrived(s: Switch, flowElement: FlowElement, job: Job) { let datei = job.getName(); let ziel...
by foxpalace
Fri Sep 29, 2017 7:23 am
Forum: LEGACY scripting
Topic: Count of Pages in PDF
Replies: 4
Views: 8222

Re: Count of Pages in PDF

Hi Zegwaard,

great - works like a charm :)
by foxpalace
Thu Sep 28, 2017 7:12 pm
Forum: LEGACY scripting
Topic: Count of Pages in PDF
Replies: 4
Views: 8222

Count of Pages in PDF

Hi, I think I am stupid, but how do I count the Pages of an PDF? - mdls won't work - a) via spotlight via launchctl deactivatet b) the flow is too fast - I tried exiftool, but var getPages = ("/usr/bin/perl /usr/local/Cellar/exiftool/10.55/bin/exiftool -\"*Count\" " + OrigFile); ...
by foxpalace
Mon Nov 05, 2012 6:35 am
Forum: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: LEGACY scripting
Topic: question about Process.execute
Replies: 9
Views: 12677

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: 8518

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: LEGACY scripting
Topic: Using data from MySQL via ODBC
Replies: 5
Views: 11083

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: LEGACY scripting
Topic: Using data from MySQL via ODBC
Replies: 5
Views: 11083

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