Hi Dan,

The method that you researched and listed can be a bit tricky. A bit of explaination may be in order as to the folder structure I use (which may clear up the missing file error). Inside an overall "job number" folder I have a subfolder called FP which contains all the information I need during the composition and programming for FusionPro. I keep these separate from the customer artwork sent to me.

Inside this FP folder, I have additional subfolders: instanceFiles, resources, templates, intermediateDocuments, printFiles, and printFilesArchive

--instanceFiles = all data files.

--intermediateDocuments = where proof documents are sent when a second step or composition process is necessary before final output.

--printFiles = final output files to send to a printer via a script.

--printFilesArchive = printFiles moved to here after printed.

--resources = any graphic, text file, tagged text file, etc. needed during the composition of a document.

--template = the FusionPro .pdf .def .dif .cfg .fpi files

When I put in the statement...

var pathName = "..\\resources\\";
var x = new FusionProResource(pathName + "MyFile.pdf", "graphic");
    x.name = (pathName + "MyFile.pdf");
    x.pagenumber = 2;
if (x.exists) {
    return x;
}

the "..\\resources\\" path name that I add tells fusionpro to "go back one subfolder level and look into another subfolder named resources for this document".

I can't take credit for the rest of the script though. This was shown to me by the person whose position I took over when he left.

Basically it is setting the pdf graphic tag attributes without actually writing a tag. I suppose that you could write something like...

var pdfFile = CreateResource("..\\resources\\MyFile.pdf" , "graphic", true);

return '<graphic file="' + pdfFile + '" pagenumber="2">'

I just feel that the previous script is a bit simpler.

hth

---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company

--
Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] --
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to