You can try using the Execute Command element and build the arguments using text with variables.
I have been successful using javascript to execute a command as well.
Search found 19 matches
- Tue Apr 25, 2017 5:14 pm
- Forum: Scripting
- Topic: Passing Parameters to an exposed com with vbscript
- Replies: 1
- Views: 13306
- Mon May 16, 2016 11:22 pm
- Forum: Flows
- Topic: HTTP Post to send xml-file
- Replies: 2
- Views: 1536
Re: HTTP Post to send xml-file
Hi, When we POST using something like curl or wget we post the xml as a quoted string to the url. curl -d xmlstring='<?xml version="1.0" encoding="iso-8859-1" ?><updateJob><jobId>3675998</jobId><jobStatus>0</jobStatus></updateJob>' http://printer.com/External_status.asp" May...
- Tue May 03, 2016 8:55 pm
- Forum: PDF Creation
- Topic: Problems Loading Indesign/Illustrator files in Switch
- Replies: 2
- Views: 13751
Re: Problems Loading Indesign/Illustrator files in Switch
Hi, I have been working with Enfocus Maintenance on this same problem. What I did to solve this is to go to Manage Configurators and remove the Adobe Illustrator version 3 (for CC 2014 and CC 2015) Then install the previous version by going to the Web icon. Click the Actions at the top right of the ...
- Thu Feb 25, 2016 4:36 pm
- Forum: Preflighting
- Topic: XML data and preflight/actions
- Replies: 2
- Views: 15297
Re: XML data and preflight/actions
In the Pitstop Server Variable set you will create a rule that will be set to true or false (or yes no). If "Customer" is equal to ABC then yes. When that rule is used in a pitstop profile with actions attached you can turn on the Variables in the Actions window and use it to control the c...
- Mon Jun 15, 2015 5:26 pm
- Forum: Connect ALL / SEND
- Topic: XML Job Ticket
- Replies: 3
- Views: 13723
Re: XML Job Ticket
The Indesign Element in Switch can be used to import and format an xml file.
A small javascript in the command element of the properties of the Indesign element is all that is needed to import the xml into the template.
A small javascript in the command element of the properties of the Indesign element is all that is needed to import the xml into the template.
- Mon Jun 15, 2015 5:20 pm
- Forum: Scripting
- Topic: leading and trailing spaces: trim
- Replies: 5
- Views: 3386
Re: leading and trailing spaces: trim
You can use a Switch Variable to do this with norm or trim from the Variable options:
job.getVariableAsString("[Job.NameProper:Space=\"norm\"]");
job.getVariableAsString("[Job.NameProper:Space=\"norm\"]");
- Mon Jun 15, 2015 5:12 pm
- Forum: Scripting
- Topic: Acrobat Forms
- Replies: 5
- Views: 3675
Re: Acrobat Forms
When using the Acrobat Element in Switch you can place your script in the Command part of the properties. The element will take care of opening and saving the document, the Command script will add the check box to your pages. $doc is Switch's equivalent to app.activeDocument. It refers to the job th...
- Fri Jun 05, 2015 9:20 pm
- Forum: Flows
- Topic: Assemble Files with XML
- Replies: 3
- Views: 2407
Re: Assemble Files with XML
First you need to pass the count of Products to the Assembler Number of Files. In the Assembler start with the Custom Scheme. Job Identifier is your order. Pull that from the metadata Number of files is this type of xpath from the metadata count(//ProductItem) - Do this inside a switch calculation a...
- Mon Mar 30, 2015 10:40 pm
- Forum: Scripting
- Topic: Acrobat script // Need help
- Replies: 3
- Views: 2677
Re: Acrobat script // Need help
Hi,
Your script should be installed in the Command Section of the Acrobat Configurator, not the Save Section. Use the save section to save the pdf and close Acrobat.
Your script should be installed in the Command Section of the Acrobat Configurator, not the Save Section. Use the save section to save the pdf and close Acrobat.
- Mon Mar 30, 2015 10:34 pm
- Forum: Scripting
- Topic: Send Switch Stat variables to JavaScript
- Replies: 10
- Views: 6854
Re: Send Switch Stat variables to JavaScript
You can use Round() in Switch Calculation variables.
- Mon Mar 30, 2015 10:27 pm
- Forum: Scripting
- Topic: RegExp Lazy Quantifiers
- Replies: 1
- Views: 1586
Re: RegExp Lazy Quantifiers
Hi,
I changed it to var re = /([\d\w\s]+)\s\//;
and this returned: cap: Some Value /
the .* would not work for me either
I changed it to var re = /([\d\w\s]+)\s\//;
and this returned: cap: Some Value /
the .* would not work for me either
- Thu Mar 19, 2015 7:40 pm
- Forum: PDF Creation
- Topic: Barcodes and data matrix in pdf files
- Replies: 1
- Views: 12550
Re: Barcodes and data matrix in pdf files
I have used the products from this website for a few years. They make a data matrix font and generators that make jpg etc.
http://www.idautomation.com
http://www.idautomation.com
- Thu Mar 19, 2015 7:19 pm
- Forum: Scripting
- Topic: Switch and InDesign - moving files out
- Replies: 5
- Views: 4296
Re: Switch and InDesign - moving files out
The Save Script requires the javascript to save and send files to the outgoing connection. (Don't use this script under Open or Command) Instead of File() use $outfolder as the path to the outgoing connection and define the name of your file: var ImpositionJob = $outfolder + "/" + "Im...
- Mon Feb 23, 2015 3:41 pm
- Forum: Flows
- Topic: Freehand in Switch
- Replies: 4
- Views: 3696
Re: Freehand in Switch
Running Switch on a Mac with a Script Module you can write an applescript to open the file in Freehand 11 and save. After the script you can place an Illustrator element in the flow to open the saved file and resave as .ai.
- Mon Feb 23, 2015 3:36 pm
- Forum: Flows
- Topic: Performance issues
- Replies: 4
- Views: 3483
Re: Performance issues
Hi Ariel You should increase the timeout in Switch Preferences -> Error Handling -> Abort Processes After -> the default is 20 minutes but I find 30 - 40 minutes for large production files. (or higher). You don't want a file to run that long and just time out right before it is done. The concurrent ...