Search found 15 matches

by jstotz
Tue Jan 20, 2026 8:17 pm
Forum: Flows
Topic: Substring of job name to Action list fields.
Replies: 7
Views: 2562

Re: Substring of job name to Action list fields.

I figured out the variable error.
I think it didn't like the fact that I was defining one variable in terms of another. Once I defined all of them in terms of the num_pages variable, it worked.
by jstotz
Sat Jan 17, 2026 2:49 am
Forum: Flows
Topic: Substring of job name to Action list fields.
Replies: 7
Views: 2562

Re: Substring of job name to Action list fields.

Thanks for the tips on the regex. Do you have any ideas on the variable error? 349: Error while processing document (PitStop Library error code 3504): An error occurred while calculating the values of a required variable. I know it's not caused by the _123_ because I'm temporarily using spaces in my...
by jstotz
Thu Jan 15, 2026 11:29 pm
Forum: Flows
Topic: Substring of job name to Action list fields.
Replies: 7
Views: 2562

Re: Substring of job name to Action list fields.

I already have an applescript that figures out the number of pages because it is rather complicated so I'll stick with that for now. I made a dummy flow and set up one variable to pull the number of pages out of the file name and an action that used that number. That worked, although I had trouble w...
by jstotz
Wed Jan 14, 2026 1:21 am
Forum: Flows
Topic: Substring of job name to Action list fields.
Replies: 7
Views: 2562

Substring of job name to Action list fields.

I'm wondering if this is possible and if so, where to start. 1 - The job is a folder containing a text and cover pdf. 2 - Read a job name and extract a substring from it. (Number of pages) 3 - Later in the flow, run several Pitstop actions that do things like resize the page, move elements on the pa...
by jstotz
Thu Nov 07, 2024 2:25 am
Forum: Flows
Topic: Re-Assembling a job with added hierarchy info
Replies: 0
Views: 69616

Re-Assembling a job with added hierarchy info

My flow recieves a zip file with multiple individual pdf files at the top level. I am unzipping and then sending each file to a folder based on its page count. (1-10, 11-20, 21-30 etc.) After those folders, I have a set hierarchy path element to add something like "/1-10pgs". I then need t...
by jstotz
Wed Jan 24, 2024 11:28 pm
Forum: Flows
Topic: Assemble job getting Job.FileCount wrong
Replies: 2
Views: 2687

Re: Assemble job getting Job.FileCount wrong

I was able to do what I needed by using the Metatagger app.
by jstotz
Wed Jan 24, 2024 7:13 pm
Forum: Flows
Topic: Assemble job getting Job.FileCount wrong
Replies: 2
Views: 2687

Assemble job getting Job.FileCount wrong

I'm assembling a job that had previously been ungrouped. I have it set up to include the number of files in the resulting job name but it keeps putting in 1 instead of the actual number. The scheme is "ungrouped job", the private data key is "Ungroup", and the number of files is ...
by jstotz
Thu Dec 22, 2022 5:54 pm
Forum: Flows
Topic: Acting on only one file from a job folder
Replies: 6
Views: 4698

Re: Acting on only one file from a job folder

Yes, all the files with a specific J number come in in a zip file which I am unzipping in a prior step. All the text files within one J number have the same number of pages. I almost have a script written to do this part ahead of switch so it's not urgent.
by jstotz
Thu Dec 22, 2022 12:34 am
Forum: Flows
Topic: Acting on only one file from a job folder
Replies: 6
Views: 4698

Re: Acting on only one file from a job folder

J12345_C1252365_cvr.pdf J12345_C1252365_text.pdf J12345_C2544758_cvr.pdf J12345_C2544758_text.pdf J12345_C2587435_cvr.pdf J12345_C2587435_text.pdf J12345_C2587456_cvr.pdf J12345_C2587456_text.pdf J12345_C3654785_cvr.pdf J12345_C3654785_text.pdf J12345_C8524712_cvr.pdf J12345_C8524712_text.pdf J12345...
by jstotz
Mon Dec 19, 2022 9:40 pm
Forum: Flows
Topic: Acting on only one file from a job folder
Replies: 6
Views: 4698

Acting on only one file from a job folder

I have a job folder come in with sereval files in it. They are PDFs containing texts and covers. I need to find out the number of pages in any one of the text files and rename the folder or route the whole folder to an appropriate output connection. I can do most of it, and I know the number of page...
by jstotz
Mon Dec 12, 2022 10:22 pm
Forum: Flows
Topic: Rename files based on property of another file
Replies: 1
Views: 2066

Rename files based on property of another file

A job which consists of one text file and several cover files enters a flow. Is it possible to rename the cover files based on the number of pages in the text file? The renaming will then be used to direct the cover to other folders. Also, there will sometimes be more than one text file but I only n...
by jstotz
Wed Jan 27, 2021 7:09 pm
Forum: Flows
Topic: Archive Hierarchy vs Assemble Job
Replies: 1
Views: 2826

Archive Hierarchy vs Assemble Job

The Merge PDF element requires a folder of PDF files. I'm trying to use Archive Hierarchy in front to re-assemble some PDFs into a folder that Merge PDF can use. For some reason, it complains that "the job is not a folder". It works when I use Assemble Job, but that doesn't let me put the ...
by jstotz
Wed Feb 21, 2018 11:27 pm
Forum: LEGACY scripting
Topic: Padding the suffix in the split element
Replies: 2
Views: 5754

Re: Padding the suffix in the split element

Thanks, but that doesn't do what I want. I'm already using the [index] as a suffix but I want to modify it by padding it to 3 digits using the javascript padstart method.
by jstotz
Wed Feb 21, 2018 10:02 pm
Forum: LEGACY scripting
Topic: Padding the suffix in the split element
Replies: 2
Views: 5754

Padding the suffix in the split element

I'm using the split element to split files and I'm adding "#[index]" as a suffix. This works as an inline value. However, the split element pads the index to the number of digits in the original page count of the original file. If the original file had 7 pages, then the suffix for the firs...
by jstotz
Tue Oct 31, 2017 9:02 pm
Forum: LEGACY scripting
Topic: Routing jobs based on lookup from data file
Replies: 1
Views: 4730

Routing jobs based on lookup from data file

I currently have a flow that routes jobs(PDF files) based on part of the file name(job.name). They all start in one input folder and are routed to one of 9 different output folders. Each connector is using a "condition with variables defined" that contains multiple conditions OR'd together...