Search found 294 matches
- Fri Sep 08, 2023 11:30 am
- Forum: Node.js scripting
- Topic: Logging of variable
- Replies: 6
- Views: 7693
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] ...
- Fri Sep 08, 2023 11:23 am
- Forum: Flows
- Topic: Spaces in variable URL
- Replies: 4
- Views: 7049
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...
- Thu Sep 07, 2023 6:34 pm
- Forum: Flows
- Topic: Spaces in variable URL
- Replies: 4
- Views: 7049
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.
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.
- Thu Sep 07, 2023 12:30 pm
- Forum: Flows
- Topic: Split VDP PDF by Tray or Pallet
- Replies: 10
- Views: 34481
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. ...
- Tue Sep 05, 2023 12:28 pm
- Forum: Flows
- Topic: Split VDP PDF by Tray or Pallet
- Replies: 10
- Views: 34481
Re: Split VDP PDF by Tray or Pallet
Hi Freddy
Did not know the Split PDF pages app could do that.
Did not know the Split PDF pages app could do that.
- Mon Sep 04, 2023 10:25 am
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 13220
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.
- Mon Sep 04, 2023 7:56 am
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 13220
Re: Number of pages of InDesign-file
[Metadata.Integer:Path="xmp:PageInfo/*[last()]/xmpTPg:PageNumber"] In my tests it seems this metadata is based on the setting in InDesign, which can save a preview of each page. And since I have it set to 5 pages, then all my InDesign files are reported as being 5 pages. I could set it to...
- Tue Aug 29, 2023 1:07 pm
- Forum: Flows
- Topic: Split VDP PDF by Tray or Pallet
- Replies: 10
- Views: 34481
Re: Split VDP PDF by Tray or Pallet
Perhaps another way could be to use find text with a Pitstop action where you find and log the selection.
Then use the XML-report somehow to split based on when the text changes from T1 to T2 etc.
Have not done it but could maybe be a path to take.
Then use the XML-report somehow to split based on when the text changes from T1 to T2 etc.
Have not done it but could maybe be a path to take.
- Tue Aug 29, 2023 7:34 am
- Forum: Flows
- Topic: Split VDP PDF by Tray or Pallet
- Replies: 10
- Views: 34481
Re: Split VDP PDF by Tray or Pallet
Hi I have previously used A PDF Splitter with execute command to split pdf-files based on content. It worked create in my scenario, where I need to split a large file with a lot of invoices, which where 1, 2 or 3 pages. http://www.a-pdf.com/content-splitter/index.htm You can use the program to defin...
- Mon Aug 28, 2023 2:22 pm
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 13220
Re: Number of pages of InDesign-file
Hi Laurent
Thanks for the suggestions.
I know I could do it in other ways, but was unsure if there were a more direct way to get the data, without needing to open/process the InDesign-file.
Thanks for the suggestions.
I know I could do it in other ways, but was unsure if there were a more direct way to get the data, without needing to open/process the InDesign-file.
- Tue Aug 22, 2023 11:07 am
- Forum: Switch
- Topic: Number of pages of InDesign-file
- Replies: 6
- Views: 13220
Number of pages of InDesign-file
Has somebody a method to get the number of pages in an InDesign-file in Switch?
The variable [Stats.NumberOfPages] does not return anything. And I can not see anything in the XMP about this.
The variable [Stats.NumberOfPages] does not return anything. And I can not see anything in the XMP about this.
- Mon Aug 14, 2023 8:24 am
- Forum: Switch
- Topic: Setting and using data in Switch for email address
- Replies: 2
- Views: 3961
Re: Setting and using data in Switch for email address
In the mail send you could set the to address to the variable below:
[Job.NameProper:After=" "]@company.com
In my test with a sample file named "123456L Compnay JohnDoe.pdf" it gives me "JohnDoe".
[Job.NameProper:After=" "]@company.com
In my test with a sample file named "123456L Compnay JohnDoe.pdf" it gives me "JohnDoe".
- Fri Jul 14, 2023 10:24 am
- Forum: Applications
- Topic: Get contents of folder with script for InDesign
- Replies: 2
- Views: 4263
Re: Get contents of folder with script for InDesign
Thanks. As always it works when you suggest a solution :D And thanks for the tip with finding this site: https://extendscript.docsforadobe.dev This is the finished script: if ($error == null && $doc != null) { try { // Define image folder var folderObj = new Folder("D:\\TEST\\Place-imag...
- Thu Jul 13, 2023 9:38 pm
- Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
- Topic: Discourse
- Replies: 7
- Views: 19926
Re: Discourse
I do not think anyone from Enfocus reads this thread
- Thu Jul 13, 2023 9:34 pm
- Forum: Applications
- Topic: Get contents of folder with script for InDesign
- Replies: 2
- Views: 4263
Get contents of folder with script for InDesign
I have a script, which places 6 images into a template InDesign file. It works if I predefine an array with all the 6 images. Instead I would like to have the script look in a certain folder and make an array of all the files in the folder. See code below. But it returns "ERROR: folderPath.getF...