print files in a folder

HI,

Am i trying to write script to print the some indesignfiles in a folder at a time with a specified preset, and get the pdf automatically. Can any one help me out

:slight_smile:Hi

Can you tell me the exact requirement. Which InDesign version you are using? And please also mention the OS version.

Thanks
Rajeev

If the original poster replies that OS version is a flavor of X, I’ll move this request to the AppleScript | OS X forum.

Hi Gopal,

Which OS version you are using. Please let us know the OS version. In future if you are using X version then please post your message to AppleScript | OS X forum.

Thanks
Rajeev

sir,

The OSX is using for this one.

please this coding

set fileName to choose file “select file for print”
set thePath to “pdf_peplacement”
tell application “Adobe InDesign CS2”
set print file of printer preset “SF00243.prst” to fileName
print fileName using printer preset ¬
“SF00243.prst” without print dialog

end tell
–tell application “Finder”
– get fileName+“.pdf” from thePath
–end tell

Hi Gopal,

Good going!!!

I don’t have IDCS2, I am using IDCS3. Please see the code below.


tell application "Adobe InDesign CS3"
	print fileName using printer preset "SF00243" without print dialog
end tell

Why you want to use pdf_peplacement folder. You want all PS files should get saved in the pdf_peplacement folder right.

You are having one folder which contains X numbers of files, and now you want to save PS with using defined preset of all those files in the server location pdf_peplacement, so that PDF will get created.

But as per my knowledge, you can put your preset file in the server itself and create one que for that job and just fire print from the desktop to that que and you will get the PDF.

Anyway may be I am wrong, so please correct me. Or you can use Book facility available with indesign.

Thanks
Rajeev

sir,

Your concern is correct, but what i want is, i dont want to make a seperate que for this. So please give some feed back to me. and how to the get the file which one i was fired in printer que.

—Gopal

Moving to OS X…

Off topic: tgopalarao, reports are notifying the staff of inappropriate posts; Using them for help requests will not get you any answers.