Search found 19 matches

by andrea mahoney
Tue Apr 25, 2017 5:14 pm
Forum: LEGACY scripting
Topic: Passing Parameters to an exposed com with vbscript
Replies: 1
Views: 3940

Re: Passing Parameters to an exposed com with vbscript

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.
by andrea mahoney
Mon May 16, 2016 11:22 pm
Forum: Flows
Topic: HTTP Post to send xml-file
Replies: 2
Views: 21265

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...
by andrea mahoney
Tue May 03, 2016 8:55 pm
Forum: PDF Creation
Topic: Problems Loading Indesign/Illustrator files in Switch
Replies: 2
Views: 7396

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 ...
by andrea mahoney
Thu Feb 25, 2016 4:36 pm
Forum: Preflighting
Topic: XML data and preflight/actions
Replies: 2
Views: 6536

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...
by andrea mahoney
Mon Jun 15, 2015 5:26 pm
Forum: Connect ALL / SEND
Topic: XML Job Ticket
Replies: 3
Views: 8105

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.
by andrea mahoney
Mon Jun 15, 2015 5:20 pm
Forum: LEGACY scripting
Topic: leading and trailing spaces: trim
Replies: 5
Views: 8682

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\"]");
by andrea mahoney
Mon Jun 15, 2015 5:12 pm
Forum: LEGACY scripting
Topic: Acrobat Forms
Replies: 5
Views: 8943

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...
by andrea mahoney
Fri Jun 05, 2015 9:20 pm
Forum: Flows
Topic: Assemble Files with XML
Replies: 3
Views: 5861

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...
by andrea mahoney
Mon Mar 30, 2015 10:40 pm
Forum: LEGACY scripting
Topic: Acrobat script // Need help
Replies: 3
Views: 7026

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.
by andrea mahoney
Mon Mar 30, 2015 10:34 pm
Forum: LEGACY scripting
Topic: Send Switch Stat variables to JavaScript
Replies: 10
Views: 14442

Re: Send Switch Stat variables to JavaScript

You can use Round() in Switch Calculation variables.
by andrea mahoney
Mon Mar 30, 2015 10:27 pm
Forum: LEGACY scripting
Topic: RegExp Lazy Quantifiers
Replies: 1
Views: 4251

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
by andrea mahoney
Thu Mar 19, 2015 7:40 pm
Forum: PDF Creation
Topic: Barcodes and data matrix in pdf files
Replies: 1
Views: 5784

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
by andrea mahoney
Thu Mar 19, 2015 7:19 pm
Forum: LEGACY scripting
Topic: Switch and InDesign - moving files out
Replies: 5
Views: 10250

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...
by andrea mahoney
Mon Feb 23, 2015 3:41 pm
Forum: Flows
Topic: Freehand in Switch
Replies: 4
Views: 8080

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.
by andrea mahoney
Mon Feb 23, 2015 3:36 pm
Forum: Flows
Topic: Performance issues
Replies: 4
Views: 8142

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 ...