Returning PDF file back to origin folder

Post Reply
Esben Stage
Newbie
Posts: 7
Joined: Wed Jun 20, 2012 2:43 pm

Returning PDF file back to origin folder

Post by Esben Stage »

Dear all,



I have a workflow were I would like to create PDF files from an InDesign job, and when the PDF file is ready I would like to offer the contributor with the following options though a checkpoint.



- Send to "Recycle Bin"

- Send to "Origin folder"

- "Save as" To save at a different location



The recycle bin I have solved, but how can I provide information to Switch about the origin folder, and then later make the origin folder an option for the contributor to save the pdf file in?



The contributor submits the InDesign job using SwitchClient/Submission point



Br. Esben
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Returning PDF file back to origin folder

Post by dkelly »

Use variable [Job.Origin]
Esben Stage
Newbie
Posts: 7
Joined: Wed Jun 20, 2012 2:43 pm

Returning PDF file back to origin folder

Post by Esben Stage »

Thanks!



I understand the origin feature, but how to activate this so that the contributor get this option when he/she recieves the pdf file thoug a submission point?



Br. Esben
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Returning PDF file back to origin folder

Post by dkelly »

s.copy(job.getPath(), job.getVariableAsString("[Job.Origin]") + "/" + job.getName());
Esben Stage
Newbie
Posts: 7
Joined: Wed Jun 20, 2012 2:43 pm

Returning PDF file back to origin folder

Post by Esben Stage »

Hi dkely,



Thanks, but I don't get it :-) I guess this is our of my league!



Is this a codestring that I can paste somewhere, or ....?



Anyhow appreciate you help.



One thing can you please confirm if my request is possible to build with standard Switch tools?



Br. Esben
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Returning PDF file back to origin folder

Post by freddyp »

Here is a solution that does not use scripting.



When the job follows the connection "Origin folder" out of the checkpoint it should go into "Set hierarchy path" followed by "Archive hierarchy".



In "Set hierarchy path" you "replace" the hierarchy path with "Action 1" as a "Define single-line text with variable" and the variable is [Job.Origin].



"Archive hierarchy" puts the job in the path defined in the hierarchy.



Note: I am assuming that you are submitting Indesign packages, and as those are folders [Job.Origin] will refer to a folder and it will work.



Freddy
Post Reply