> Ok this is strange. During validation
> the js engine creates the
> necessary temp file. But during
> composition it errors out at line 26:
With FusionPro 5.1 for Mac, when using the JavaScript File object, you
have to use a POSIX path for rule validation in the editor, but an HFS
path at composition time. Try something like this:
if (FusionPro.inValidation)
temp = "/Users/rjmolesa/temp/BizCard-Blank/tempout.txt";
else
temp = "Macintosh HD:Users:rjmolesa:temp:BizCard-Blank:tempout.txt";
I realize this is an additional complexity, but this is a consequence of
architectural changes on Mac OS X which are beyond our control. In
FusionPro 5.1 for Mac, we changed our internal path format from HFS to
POSIX. The Composition Server still supports HFS paths for
backwards-compatibility for the time being, although you should consider
HFS paths deprecated. The one exception to this rule is the JavaScript
File object, which is implemented as an extension to the third-party
JavaScript API and only accepts HFS paths. So, for the File object
only, you still need to use HFS paths in this version of FusionPro.
I would tell you that in a future version, the Composition Server will
be using a newer version of the File object which will take POSIX paths
just like every other aspect of the product. However, it's much more
likely that support for the File object itself will be removed, and that
this entire "repeat a record by rewriting your whole input file in
OnJobStart" workaround will be replaced by something far more
straightforward, where you won't have to worry about file names or paths
at all (and which would work even if you transferred the job from
Windows to Mac or vice-versa, including uploading jobs to FusionPro
Web).
Finally, remember that you're not going to get much out of validating
your OnJobStart rule in the rule editor. It might be easiest just to
put this at the top:
if (FusionPro.inValidation)
return "";
And then you can just use the HFS path in the rule and not worry about
POSIX for now. You can always use some Print statements to write to the
log (.msg) file if you need to debug the logic at composition time,
which is the only time when repeating a record is relevant anyway.
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
--