Search found 276 matches

by sander
Thu Aug 24, 2017 5:25 pm
Forum: LEGACY scripting
Topic: InDesign Smartstream Create Job Script
Replies: 11
Views: 11918

Re: InDesign Smartstream Create Job Script

Yes sir. But I had to do some creative thinking to workaround some limitations. Probably the same as you come across now :)

Again, what's your exact case. I'm sure we can figure it out.
by sander
Thu Aug 24, 2017 11:52 am
Forum: LEGACY scripting
Topic: InDesign Smartstream Create Job Script
Replies: 11
Views: 11918

Re: InDesign Smartstream Create Job Script

Every job that I'm doing have different data list also different artwork and different location. I create thousands of jobs in the VDP configurator with different artwork and such. E.g. for one customer I place two pdf's and do variable data with a supplied csv, so unique artwork and variable data ...
by sander
Tue Aug 22, 2017 11:26 am
Forum: LEGACY scripting
Topic: InDesign Smartstream Create Job Script
Replies: 11
Views: 11918

Re: InDesign Smartstream Create Job Script

That's what the SmartStream VDP Configurator in Switch can do.

Did you try that one?

Image
by sander
Thu Aug 17, 2017 3:43 pm
Forum: LEGACY scripting
Topic: InDesign Smartstream Create Job Script
Replies: 11
Views: 11918

Re: InDesign Smartstream Create Job Script

I did some findings while using Switch the last years, I'm not into InDesign javascript but I bet it can help you to get in the right direction. "I think": In the folder %userprofile%\Documents\Adobe Scripts there's a jsx file created when a new job arrives at the configurator. impp.jsx in...
by sander
Tue Jul 18, 2017 11:41 am
Forum: Applications
Topic: Library/AppSupport/Enfocus/SS/BACKING? (Windows)
Replies: 4
Views: 7996

Re: Library/AppSupport/Enfocus/SS/BACKING? (Windows)

I'm running in a virtual environment and just in case c:\ won't boot up I can attach d:\ at some other place easily :)
by sander
Tue Jul 18, 2017 11:02 am
Forum: Applications
Topic: Library/AppSupport/Enfocus/SS/BACKING? (Windows)
Replies: 4
Views: 7996

Re: Library/AppSupport/Enfocus/SS/BACKING? (Windows)

Relative to the Application data root set in your preferences:
Image
by sander
Wed Jul 12, 2017 11:58 am
Forum: LEGACY scripting
Topic: Duplicate pages
Replies: 11
Views: 14875

Re: Duplicate pages

Hmm, I was in the assumption I did post both on the forum as well as a private message to Fist. His question is to duplicate the 57th page of a pdf and inject it after each of the other 56 pages. I don't use this flow but I adjusted a flow made earlier: https://we.tl/ujEPpm5lFM Based on topic over h...
by sander
Wed Jul 12, 2017 11:53 am
Forum: Flows
Topic: Assemble Job with no delay
Replies: 8
Views: 11161

Re: Assemble Job with no delay

Morning, I was working on something else and, don't ask why, this topic popped up in my head. How about such a thing? It's fast written code but should get you started. It just reads the content of a directory and pushes all files to a folder which you can use with Merge PDF. Just correctly set your...
by sander
Tue Jul 11, 2017 9:22 am
Forum: Preflighting
Topic: How do I make Pitstop actions available in the Switch Configurator?
Replies: 2
Views: 6418

Re: How do I make Pitstop actions available in the Switch Configurator?

Right click on any PitStop configurator and choose 'Search for application'.

Now your list is updated too :)

Image
by sander
Fri Jul 07, 2017 10:01 am
Forum: Flows
Topic: web hooks? MS Teams
Replies: 4
Views: 8317

Re: web hooks? MS Teams

I couldn't get post with json to work either so I switched to cURL. Works great, worth a try! :) // Other carriers jsonBody = '{' + '"company": "'+propCompany.left(35)+'",' + // Not required '"full_name": "'+propFullName.left(35)+'",' + '"post_code":...
by sander
Thu Jul 06, 2017 1:53 pm
Forum: LEGACY scripting
Topic: SQL Statement works in build window but parse error in define window
Replies: 6
Views: 11152

Re: SQL Statement works in build window but parse error in define window

Just to mention: Personally I never use the Build SQL statement / manual edit window because it kept crashing my Switch all the time. It made me very aggressive when I started using SQL in Switch :mrgreen: Does your statement work if you put it in a 'Database connect' configurator or do you get the ...
by sander
Thu Jul 06, 2017 1:30 pm
Forum: LEGACY scripting
Topic: Script expression - If - Else
Replies: 5
Views: 7340

Re: Script expression - If - Else

Most of the script expressions only hold a few lines of code and I write these from within the script expression window itself. In practice: copy, paste and adjust :P

If the script is bigger then I use Switch Scripter, however I barely use these as a script expression.
by sander
Thu Jul 06, 2017 9:37 am
Forum: LEGACY scripting
Topic: Switch/Pitstop variables
Replies: 3
Views: 7746

Re: Switch/Pitstop variables

Haha good to hear! That's exactly what the users try to achieve over here :lol:
by sander
Tue Jul 04, 2017 2:27 pm
Forum: LEGACY scripting
Topic: Script expression - If - Else
Replies: 5
Views: 7340

Re: Script expression - If - Else

Code: Select all

var theVar = job.getVariableAsNumber("[Stats.NumberOfPages]");
if (theVar % 2 == 0 ) {
	s.log(3, "Even!");
} else {
	s.log(3, "Odd!");
}
Something like this?

%2 checks if theVar is dividable by 2, if so it's even, else odd ;)