Search found 288 matches

by JimmyHartington
Mon Sep 25, 2023 10:51 am
Forum: Flows
Topic: Select spot colors based on a text file
Replies: 6
Views: 15423

Re: Select spot colors based on a text file

Hi Jan

Thanks for the answer.
The problem is not to get the list to a variabel in Switch.
But more that Select Spot Color does not support to put use a Pitstop variabel as the list.
by JimmyHartington
Fri Sep 22, 2023 2:04 pm
Forum: Flows
Topic: Select spot colors based on a text file
Replies: 6
Views: 15423

Select spot colors based on a text file

I need a good idea. I would like to be able to select all spot colors, which are listed in a text-file. This way a customer can add colors to the text-file and the action list in the Switch flow will dynamically remapped these spot colors to one spot color. But in Pitstop Pro I can not make the list...
by JimmyHartington
Thu Sep 21, 2023 2:48 pm
Forum: Flows
Topic: Use color picker to set background color?
Replies: 3
Views: 3817

Re: Use color picker to set background color?

May I present another solution.
Do like when TV shows vertical video on a 16:9 TV.

Image

This action list scales the pdf to A4. https://d.pr/f/lMRKEb+
Copies the image to the background.
Scales the image non-proportinally to fit A4.
Blurs the image.
by JimmyHartington
Thu Sep 21, 2023 2:23 pm
Forum: Switch
Topic: Length of variable
Replies: 4
Views: 5833

Re: Length of variable

Thanks Magnus for the example.
In my current use case I will use the other idea with scaling the content, which overlaps the media box.
by JimmyHartington
Thu Sep 21, 2023 9:21 am
Forum: Switch
Topic: Length of variable
Replies: 4
Views: 5833

Re: Length of variable

I have an action list, which places a string (variable from Switch) onto the first page. If the number of characters of the string is larger than 90 I would like to set the font size to another value. And since Loic Agnon showed the conditional variables in Pitstop I would like to use them to set th...
by JimmyHartington
Tue Sep 19, 2023 10:57 pm
Forum: Flows
Topic: Release files sorted by time stamp
Replies: 2
Views: 5066

Re: Release files sorted by time stamp

Are you allowed to rename the files? Maybe temporarily. Then you could add the date/time as prefix. Use the app File sorter and spacer to sort and release. https://cdn-www.enfocus.com/sites/default/files/media/images/appstore/product_documentation/1666186900/documentation_-_folder_apps_v4_english.pdf
by JimmyHartington
Tue Sep 19, 2023 2:16 pm
Forum: Switch
Topic: Length of variable
Replies: 4
Views: 5833

Length of variable

I can not seem to find out how to get the length (number of characters) of a variable.
Is there a built in way in Switch to do this?
Or do I have to use scripting?
by JimmyHartington
Fri Sep 08, 2023 1:52 pm
Forum: Node.js scripting
Topic: Logging of variable
Replies: 6
Views: 7399

Re: Logging of variable

So you can get around this by using a variable: await job.log(LogLevel.Info,'Encoded URL: "%1"',[URLtoEncode]); Thanks patej. This method works. await job.log(LogLevel.Info,'Encoded URL: "%1"',[encodedURL]); https://d.pr/i/qIgkzv+ So now the finished code is like this: async fun...
by JimmyHartington
Fri Sep 08, 2023 1:48 pm
Forum: Node.js scripting
Topic: Logging of variable
Replies: 6
Views: 7399

Re: Logging of variable

As a workaround you can do the following: let replacements = ["%1", "%2", "%3", "%4", "%5", "%6", "%7", "%8", "%9"]; await job.log(LogLevel.Info, encodedURL, replacements); I tried to add this code to the scri...
by JimmyHartington
Fri Sep 08, 2023 11:30 am
Forum: Node.js scripting
Topic: Logging of variable
Replies: 6
Views: 7399

Logging of variable

Hi I have made a small script, which takes an URL and encodes it with "encodeURI". See code below. It fails if I try to log the encoded URL. If I do no logging it works and sets the private data correctly. I get this error: Invalid placeholders in log message at Object._0x4028cb [as _log] ...
by JimmyHartington
Fri Sep 08, 2023 11:23 am
Forum: Flows
Topic: Spaces in variable URL
Replies: 4
Views: 6897

Re: Spaces in variable URL

#UPDATE 2023-09-08 13.57.06: Link to script is changed. Better logging is added. See this post https://forum.enfocus.com/viewtopic.php?t=4756 Hi Erik I am still learning to script in Node.JS, so I took this as a small challenge. Here is a small script, which uses the function "encodeURI" o...
by JimmyHartington
Thu Sep 07, 2023 6:34 pm
Forum: Flows
Topic: Spaces in variable URL
Replies: 4
Views: 6897

Re: Spaces in variable URL

Hi Erik

Could you set the variable to private data?
Then use one of the apps, which can search and replace in private data, to search for space and replace with %20.
And in the e-mail insert the private data url.
by JimmyHartington
Thu Sep 07, 2023 12:30 pm
Forum: Flows
Topic: Split VDP PDF by Tray or Pallet
Replies: 10
Views: 33490

Re: Split VDP PDF by Tray or Pallet

I have now tried to use the Split PDF app with an action list, which logs the text "Invoice number:". This text is on the first page of every invoice in a pdf with multiple invoices. I need to split the pdf, so I can sort on number of pages per invoice. Invoices can be 1, 2, 3 or 4 pages. ...
by JimmyHartington
Tue Sep 05, 2023 12:28 pm
Forum: Flows
Topic: Split VDP PDF by Tray or Pallet
Replies: 10
Views: 33490

Re: Split VDP PDF by Tray or Pallet

Hi Freddy

Did not know the Split PDF pages app could do that. :D
by JimmyHartington
Mon Sep 04, 2023 10:25 am
Forum: Switch
Topic: Number of pages of InDesign-file
Replies: 6
Views: 12853

Re: Number of pages of InDesign-file

We use the preview internally to preview files with Quick-look before opening. Which is why I prefer 5 pages with higher resolution instead of all pages at lower resolution.