On Jun 18, 2008, at 3:32 PM, Jon Molesa wrote:
This is all very frustrating. It will actually generate the
tempout.txt
file during validation and once the editor is opened, closing it also
causes it to generate tempout.txt.
However, the behavior of composition is different and very perplexing.
Yes, well, as I said, this "rewrite your entire input file in a
complicated rule with hard-coded path names" workaround to simply
repeat a record is something we're looking to deprecate with a more
straightforward and efficient solution. That example wasn't intended
to be a general solution. And not only is the example specific to
Windows, but porting it to Mac under FusionPro 5.1 forces you to deal
with the HFS to POSIX path transition, which we have worked hard to
otherwise make fairly transparent to the user, in almost all aspects
of the product. But we didn't want to bother patching the File
object, mainly because we're trying to eliminate it. I apologize for
the frustration.
That said, I think you've made this more confusing than it needs to
be. You shouldn't need to do more than this:
1. Start with the OnJobStart rule from the "Repeat a record" example
in the Knowledge Base.
2. Change the references to the "Repeat Count" field to whatever field
name contains the repeat count in your input file.
4. Remove the logic which tries to build the new input file path and
name based on the original, Windows-specific one. (Basically, remove
lines 11 through 20.)
5. In place of all that Windows-specific path stuff, simply insert a
single statement which assigns a fully-qualified HFS path and filename
to the "newfilename" variable. Something like:
newfilename = "MacOSX:Users:rjmolesa:temp:BizCard-Blank:tempout.txt";
6. Put this at the top:
if (FusionPro.inValidation)
return;
That should get you up and running, if the filenames are correct and
the files and folders in question have the necessary read and write
permissions. You won't be able to validate, obviously, but
composition should work.
Is there included documentation on the third part File() function?
You can read about it here:
http://www.mozilla.org/js/js-file-object.html
But note the disclaimer:
http://www.mozilla.org/js/js-file-object.html#playwithfire
This is a non-standard addition to JavaScript, and it will probably be
unsupported in a future version of FusionPro, so you should consider
it deprecated.
Dan
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
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
--