Search found 56 matches
- Wed Oct 02, 2019 4:19 am
- Forum: LEGACY scripting
- Topic: Query an API for XML Job Ticket
- Replies: 4
- Views: 8027
Re: Query an API for XML Job Ticket
Hi All, Thanks for the responses. After a little research I found some code that did the trick for me. Thought I would share in case it helps someone else var theHTTP = new HTTP( HTTP.NoSSL ); theHTTP.url = "URL"; // This script file is also in the repo. Needs to go on an http server job.l...
- Sat Jul 13, 2019 2:38 am
- Forum: LEGACY scripting
- Topic: FTP Receive Help
- Replies: 2
- Views: 4467
Re: FTP Receive Help
All good figured this out. My issue was that I wasn't returning a boolean value - returning job.getName() == path; did the trick.
- Sat Jul 13, 2019 2:38 am
- Forum: LEGACY scripting
- Topic: FTP Receive Help
- Replies: 2
- Views: 4467
Re: FTP Receive Help
All good figured this out. My issue was that I wasn't returning a boolean value - returning job.getName() == path; did the trick.
- Wed Jul 10, 2019 9:39 am
- Forum: LEGACY scripting
- Topic: Save an Array in Private data
- Replies: 2
- Views: 4524
Re: Save an Array in Private data
Thanks heaps. Worked really well.
- Wed Jul 10, 2019 9:34 am
- Forum: LEGACY scripting
- Topic: FTP Receive Help
- Replies: 2
- Views: 4467
FTP Receive Help
Hi All, Only been working with switch for a few months but I have an issue trying to pick all files in a named folder. The folders are dates, files are loaded in to the folders each day and the name of the folder is set to the corresponding day - ie 20190710. I have tested my pickup method by adding...
- Thu Jun 20, 2019 1:43 am
- Forum: LEGACY scripting
- Topic: Download from SFTP and Delete files
- Replies: 2
- Views: 4613
Re: Download from SFTP and Delete files
Thanks for that I am just in the planning stage so I have not looked at the element. Really as simple as selecting "Leave originals on server"
- Wed Jun 19, 2019 1:28 pm
- Forum: LEGACY scripting
- Topic: Download from SFTP and Delete files
- Replies: 2
- Views: 4613
Download from SFTP and Delete files
Hi All,
I have a new project where I need to do a daily download from an SFTP server. Once all files are downloaded in to switch, I would like to delete all the files from the SFTP server. Is this possible?
I have a new project where I need to do a daily download from an SFTP server. Once all files are downloaded in to switch, I would like to delete all the files from the SFTP server. Is this possible?
- Wed May 29, 2019 9:26 am
- Forum: LEGACY scripting
- Topic: Save an Array in Private data
- Replies: 2
- Views: 4524
Save an Array in Private data
Is it possible to save an Array in private data? If yes what would be the correct syntax? I am just think about retrieving the Array from private data and back into an Array. Maybe just use split?
- Wed May 08, 2019 1:40 pm
- Forum: Applications
- Topic: Optical recognition character
- Replies: 3
- Views: 10382
Re: Optical recognition character
I may have something for you. I have just put together a script to recognise a Regular Expression (regex) in a PDF. Just have to tidy it up a bit but would that work for you?
- Wed May 08, 2019 1:20 pm
- Forum: LEGACY scripting
- Topic: VBScript Read dataset XML
- Replies: 0
- Views: 8238
VBScript Read dataset XML
I am currently writing a script to find text in a PDF, the Text I am searching for is supplied via metadata as a dataset. To read the PDF I need to use VbScript but I am unable to figure out the vbscript equivalent to the javascript syntax of var dataset = job.getDataset("XML"); and datase...
- Mon Aug 19, 2013 1:41 am
- Forum: LEGACY scripting
- Topic: Query an API for XML Job Ticket
- Replies: 4
- Views: 8027
Query an API for XML Job Ticket
I have created an API and was hoping to use switch to query the API to get the jobticket information. I have setup so that when the job ticket id is sent to the API a XML file is created and then saved into an input folder but I cannot get the script to query the API. My Javascript is not very good ...