On Jun 25, 2007, at 2:44 PM, [EMAIL PROTECTED] wrote:
First -- I get the following error when saving the OnJobStart callback: "Macintosh HD:Library:Application Support:Printable:FusionPro:Builtins.js,
line 2179: Error: File operation open failed."
Is this simply a "validation/preview" error and I should ignore it or is
this line of the builtins.js bad?

That means that the file you're trying to open is not valid. You need to modify the path in the "newfilename" and "orginputfilename" variables in the rule to match the actual paths on your machine. Remember that, on Windows, any backslashes in the path need to be escaped with double-backslashes. Or, you can use forward-slashes instead.

Second -- When I compose a secondary file and the secondary record count
is less then the primary file, my composed file contains all of the
secondary records... as well as the balance of records from the primary
file to it's total record count.

I'm not sure what you mean. Are you trying to filter out certain records? If so, the best way to do that is to use the FusionPro.Composition.composeThisRecord property in OnRecordStart.

This problem might go away when you fix the first one, though.

The current "work-around" is to trash the temp file after each
composition.

With that said, is it possible to delete (or rename with date and time
appended to filename) the temp. file with an OnJobEnd callback? And if so,
how?

You should be able to use any of the methods of the File object, including the remove and renameTo methods:
http://www.mozilla.org/js/js-file-object.html

But I have to echo the huge caveat with the File object:
http://www.mozilla.org/js/js-file-object.html#playwithfire

The File object is still fairly experimental. Please back up anything important before trying anything new with it.

For that matter, this "Repeat Record" example itself is basically a workaround. What we really need is a way to control record repetition in JavaScript without having to rebuild the input file using the File object.

Dan

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


--
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