*On Wed, Jun 18, 2008 at 12:27:52PM -0500 Dan Korn <[EMAIL PROTECTED]> wrote:
> On Jun 17, 2008, at 2:37 PM, Dan Korn wrote:
>> Do you have a "return" statement preceding that last line?
By preceeding I thought you meant the line just before. My mistake.
Corrected.
> I'll bet that you see one of those messages in the log file.
Correct,
It fails on:
-------------------
try
{
if (of.open("create") == false)
{
Print("Could not write output file:\n" + temp);
}
}
catch (e)
{
Print ( e + ": " + temp);
}
-------------------
It executes the catch portion. Resulting in:
Error: File operation open failed:
MacOSX:Users:rjmolesa:temp:BizCard-Blank:tempout.txt
OnJobStart, line 27: Error: File operation open failed
Job started 14:45:02 - 1213800302.
Creator: FusionPro(TM) Desktop 5.1P2b
/Users/rjmolesa/temp/BizCard-Blank/BizCard-Blank.dif
Font assets file is not found. Only system fonts will be used for this
job.
Begun composing record #1
Begun composing record #2
Job ended 14:45:03 - 1213800303.
I changed the temp var because in a previous email you stated
that File() requires HFS paths.
var temp = "MacOSX:Users:rjmolesa:temp:BizCard-Blank:tempout.txt";
However, it still doesn't make it to the bottom of the code where your
Print statement is.ii
> Unfortunately, as the message box notes when you're in a Callback rule
> and click Validate, the return value is ignored at composition time.
> However, the effect of the "return" statement itself, in terms of
> short-circuiting the rule's execution, is still present. So the entire
> rule is silently failing with a "return" statement.
That makes sense. I assumed ignored meant treated as comments, but
infact it means no output will be displayed on the screen.
> Those other calls to "print" in the sample rule are typos: the function
> name is "Print", and variable names in JavaScript are indeed
> case-sensitive.
Indeed it is. Thank you. Corrected as well.
--
Jon Molesa
[EMAIL PROTECTED]
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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
--