Open a new File() by Script and set the Type of PDF file fails...

Hi all

I created a script to download PDFs from a server and store them in an Indesign Document. Everything works fine except Indesign doesn't not recocnize file Type when you try to place the pdf file and get an error that the downloaded PDF file cannot be due to the filter of the unknown.

This is because the file type is apparently set to TEXT (creator is CARO) event if I write the file with

myFile.open ('w', 'PDF', "CARO");

No idea how

-get Indesign all the file type of a file newly generated in PDF format

or

-Change the Type of file later

or

-tell Indesign what filter to use when you place this file?

Thanks for your help

BTW: Indesign CS5 (7.0.4), OS X 10.6.8

UH... but you might be better off placing both '\0\0\0\0' and leave the treatment kick file extension.

Tags: InDesign

Similar Questions

Maybe you are looking for