Search found 298 matches

by JimmyHartington
Fri Jan 20, 2017 3:05 pm
Forum: LEGACY scripting
Topic: Sending Emails: Define Sender
Replies: 5
Views: 7950

Re: Sending Emails: Define Sender

Hi Andrew This feature could be nice. I have implemented the service Postmark (https://postmarkapp.com) as a transactional email-sender in some of my flows. This allows me to change the sender. Also to some of my customers emails. But it requires some setting up in regards to DNS on the sender domain.
by JimmyHartington
Thu Dec 22, 2016 10:19 am
Forum: LEGACY scripting
Topic: Search and replace text-file for weird characters
Replies: 3
Views: 6689

Re: Search and replace text-file for weird characters

Hi Thanks for the help with identify the character and the replace script. I had a script I have used before to manipulate text-files. By modifying this with the replace command I got it to work. Here is the code: // Is invoked each time a new job arrives in one of the input folders for the flow ele...
by JimmyHartington
Fri Dec 09, 2016 3:18 pm
Forum: LEGACY scripting
Topic: Search and replace text-file for weird characters
Replies: 3
Views: 6689

Search and replace text-file for weird characters

Hi I have a problem with a textfile which is supplied by my customer. And it sometimes contains some weird characters and I would like to find a way to remove them from the text-file. I can see the weird characters in Notepad++. It is called VT in the texteditor. See this screendump: https://drops.a...
by JimmyHartington
Fri Dec 09, 2016 3:11 pm
Forum: LEGACY scripting
Topic: Portals
Replies: 23
Views: 24547

Re: Portals

I have begun using the Enfocus Appstore version of Portals.
And it is great.
Really appreciate the work put into this.
by JimmyHartington
Tue Mar 08, 2016 11:09 am
Forum: LEGACY scripting
Topic: Get list of PDF-files from folder to populate drop-down
Replies: 9
Views: 16741

Re: Get list of PDF-files from folder to populate drop-down

The extra backlash made all the difference for me. Thanks to Erik to point me in the right direction. I needed to use doublebackslash in the complete path. And then it worked. I have added some extra-code to remove the extension of the filename. Finished and working code: var theDir = new Dir("...
by JimmyHartington
Mon Mar 07, 2016 10:35 am
Forum: LEGACY scripting
Topic: Get list of PDF-files from folder to populate drop-down
Replies: 9
Views: 16741

Get list of PDF-files from folder to populate drop-down

Hi I am creating a flow, where I start with a Submit Point. And I would like to have the user fill out metadata. One of them should be a dropdown of files from a folder on the Switch-Server. The contents of the folder will only be pdfs but it the number of pdfs changes over time. I tried to set the ...
by JimmyHartington
Tue Dec 02, 2014 1:43 pm
Forum: LEGACY scripting
Topic: VisualBasic - get number of pages
Replies: 1
Views: 3185

VisualBasic - get number of pages

Hi I have a Visual Basic script, which logs data about jobs to an Excel-file. Now I have tried to modify it to log the number of pages in a pdf. I use this code: theSpreadSheet.Cells(theRow,2).Value = job.getVariableAsString("[Stats.NumberOfPages]", s) But I get an error on getVariableAsSt...
by JimmyHartington
Fri Sep 05, 2014 7:29 am
Forum: LEGACY scripting
Topic: Advanced Switch concepts with scripting XML, SQL and Javascript seminar @ Graph Expo
Replies: 9
Views: 9484

Advanced Switch concepts with scripting XML, SQL and Javascript seminar @ Graph Expo

Hi Dwight



The remote option sounds like a good idea.



Is it the same price and still with access to the examples from the USB?



And where do I sign up? :-)
by JimmyHartington
Wed Aug 27, 2014 1:20 pm
Forum: LEGACY scripting
Topic: Advanced Switch concepts with scripting XML, SQL and Javascript seminar @ Graph Expo
Replies: 9
Views: 9484

Advanced Switch concepts with scripting XML, SQL and Javascript seminar @ Graph Expo

Do you also need a ticket for Graph Expo to attend?

This seminar is very interesting for me, but I need to travel from Denmark to attend.
by JimmyHartington
Wed Feb 26, 2014 9:07 am
Forum: LEGACY scripting
Topic: Set a future date in javasscript to use in HTML template
Replies: 1
Views: 3174

Set a future date in javasscript to use in HTML template

Hi I have a flow, where I send a link to a pdf via email. This pdf-file is automatically deleted after 14 days. Currently in the email I write that the file is available in 14 days. What I would like is to write to which date the file is available. I have this JavaScript, which calculates the future...
by JimmyHartington
Fri Nov 22, 2013 12:54 pm
Forum: Flows
Topic: Only allow one file to process through a flow
Replies: 16
Views: 33390

Only allow one file to process through a flow

Hi Dwight Sorry for the very late reply. Your flow works as described. If I process 10 files it holds as excepted. But if there is a period with no files running through, then it stops working. I have made a solution, which works but could be described as a bit of a hack. I use the hold configurator...
by JimmyHartington
Wed Aug 21, 2013 8:28 am
Forum: Flows
Topic: Only allow one file to process through a flow
Replies: 16
Views: 33390

Only allow one file to process through a flow

freddyp wrote: Does this mean that the "Space jobs apart" method does not solve your problem? Why not? It does work. But this flow process a zip-file containing Word, PowerPoint and pdf-files, which are all converted to pdf, processed to add a chapter page and bookmarks. Then this file is ...
by JimmyHartington
Mon Aug 05, 2013 1:20 pm
Forum: Flows
Topic: Only allow one file to process through a flow
Replies: 16
Views: 33390

Only allow one file to process through a flow

Hi dkelly I have tried to create a Script Element with your code. The code is: // Is invoked each time a new job arrives in one of the input folders for the flow element. // The newly arrived job is passed as the second parameter. function jobArrived( s : Switch, job : Job ) { setGlobalData( "P...
by JimmyHartington
Mon Jun 17, 2013 8:27 am
Forum: Flows
Topic: Only allow one file to process through a flow
Replies: 16
Views: 33390

Only allow one file to process through a flow

By the way.



A flow setting a global variable, is that set using a script element?

And how do I set a variable as global?
by JimmyHartington
Mon Jun 17, 2013 8:26 am
Forum: Flows
Topic: Only allow one file to process through a flow
Replies: 16
Views: 33390

Only allow one file to process through a flow

Hi Freddy



Did not know about the "Space jobs apart". Will use this.



Thanks for your help.