Thanks Michael! I figured out what was wrong - I had Adobe PDF as my default 
printer, but in the control panel I needed to turn off "Rey on system fonts 
only". Now my script works.



Thanks for the forum link! Perfect!
Callie




From: Michael Pearson [mailto:mt_pear...@hotmail.com]
Sent: Tuesday, May 11, 2010 7:07 AM
To: Callie Bertsche; framers@lists.frameusers.com
Subject: RE: Framescript question

Hi Callie,

Both of your "Save Book..." commands work for me under Win7, FM 9.0p250, FS 
5.2R1 (after I substituted a valid target location for the resulting PDF file). 
You might try updating FM with the latest patch and also check to see that you 
can use the FM interface to "Save As PDF" to that target location. One more 
thing to check: if Distiller hasn't been initialized on the system your using, 
that could cause problems. Might try just opening Distiller to ensure it's 
functioning.

For FrameScript questions, you might have better luck over here: 
http://tech.groups.yahoo.com/group/framescript-users/

HTH,
Mike

> From: c.berts...@tecplot.com
> To: framers@lists.frameusers.com
> Date: Mon, 10 May 2010 15:06:51 -0700
> Subject: Framescript question
>
> System: MS Vista
> Software: FM 9.0p230, FrameScript 5.2R1
>
> I'm working on creating a script that automates all PDF builds for all our 
> documentation books and I seem to have run into a snag - I can get everything 
> to work so far except after my script opens the files, runs checks, applies 
> templates etc in FrameMaker, I haven't been able to command it to save the 
> book as a PDF. For example, here's my current simplified test script that 
> opens a book, opens its files, and saves it as a PDF. Everything happens 
> except no PDF save, no PDF created. Maybe someone could spot what I'm 
> missing? Did some requirement of FrameScript change with FrameMaker 9? (This 
> used to work in FrameMaker 7, with an earlier version of FrameScript :] )
>
> (I also tried printing it as a PDF in my script, but it also did not work, 
> and didn't seem to have as many customization options.)
>
> Help?
>
>
> Set cbook = 'c:\temp\docbuild\products\tecplot\release\360\release.book'
>
> Open book File(cbook) NewVar(bookobj);
>
> Loop ForEach (BookComponent) In(ActiveBook) LoopVar(cBookCompVar)
> Open Document File(cBookCompVar.Name);
> Endloop
>
> // Also tried this: Save Book BookObject(ActiveBook) 
> File('c:\Users\callie\Desktop\release.pdf') FileType(SaveFmtPdf)
>
>
> Save Book BookObject(ActiveBook) File ('c:\Users\callie\Desktop\release.pdf')
> AlertUserAboutFailure(False)
> SaveFileNotWritable(Cancel)
> FileIsInUse(ResetLockAndContinue)
> FileType(SaveFmtPDF)
> ReturnStatus(PDFSaveErrorList);
>
> Display PDFSaveErrorList // So far this only displays a "0"
>
> This e-mail and any files transmitted with it are confidential and are 
> intended solely for the use of the individual or entity to whom they are 
> addressed. If you are NOT the intended recipient or the person responsible 
> for delivering the e-mail to the intended recipient, be advised that you have 
> received this e-mail in error and that any use, dissemination, forwarding, 
> printing or copying this e-mail is strictly prohibited.
> _______________________________________________
>
>
> You are currently subscribed to framers as mt_pear...@hotmail.com.
>
> Send list messages to fram...@lists.frameusers.com.
>
> To unsubscribe send a blank email to
> framers-unsubscr...@lists.frameusers.com
> or visit 
> http://lists.frameusers.com/mailman/options/framers/mt_pearson%40hotmail.com
>
> Send administrative questions to listad...@frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.
________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. Get 
busy.<http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>

________________________________
This e-mail and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are NOT the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, be advised that you have received this e-mail 
in error and that any use, dissemination, forwarding, printing or copying this 
e-mail is strictly prohibited.
_______________________________________________


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to fram...@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.

Reply via email to