RE: Framescript question

2010-05-11 Thread Callie Bertsche
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=multicalendarocid=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.


RE: Framescript question

2010-05-11 Thread Callie Bertsche
Thanks to the people who sent me great sample scripts and links to framescript 
forum! I figured out my problem - I had Adobe PDF set as my default printer, 
but I also needed to go to the preferences for the Adobe PDF printer and turn 
off Rely on system fonts only... I thought I had done that already but it 
needed to be done again. Now my script works fine! Hurray for PDF build 
automation...

Callie

From: Callie Bertsche c.berts...@tecplot.com
To: 'framers@lists.frameusers.com' framers@lists.frameusers.com
Subject: Framescript question
Message-ID: 6df989906d8efe46900494bb7a64c60301f1764...@tps004
Content-Type: text/plain; charset=us-ascii

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 :] )

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.


RE: Framescript question

2010-05-11 Thread Michael Pearson

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. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
___


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.


Re: Framescript Question

2007-05-22 Thread Rick Quatro

Hi Anita,

Let's say your current anchored frame object is oAFrame. You can use this to 
scroll it into view.


Set oPgf = oAFrame.TextLoc.Object;
Find TextRange(oPgf) ScrollTo;

Then you can use a YesNo message box.

MsgBox Mode(YesNo) Button(iButton)
 'Do you want to move this frame?';
If iButton = YesButton
 // Branch to code to fix frame.
Else
 // Continue loop to find next frame.
EndIf

Rick Quatro
Carmen Publishing
585-659-8267
www.frameexpert.com


Hi all -- 


Framescript question--Frame 7.0p579, FrameScript 4.1R2.

I have a script that moves through a book and sets the left margin of
each graphic to a certain distance based on the context of the anchored
frame.  The basic logic is: If the preceding paragraph tag is A, set the
margin to X.  If it's B, set it to Y ... and so on.  This part works
great.

I now have a book that requires individual inspection of each graphic.
I need to see it to know whether to change it.  The problem is that when
my existing script runs, it doesn't bring each anchored frame into view
in the Frame window.  All I see is the first page of the document and a
bunch of flickering as the graphics are changed.  Is there a way to get
the focus of the window to change as part of the script, so that I just
click Yes or No for each frame?  I'd rather not have to scroll manually
to each anchored frame.

Thanks for any wisdom!
Anita




Anita Maria Gutierrez
Principal Curriculum Developer
Sage Software
15195 NW Greenbrier Parkway
Beaverton, Oregon 97006
(503) 439-7286

___


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]

or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


RE: Framescript Question

2007-05-22 Thread frameusers
Hello Anita,   

use a execute fc command. 
This command scrolls the current selection to the middle of the document 
window.  

Set lv_objDocument = Session.ActiveDoc;
Run SelectAndViewAFrame Using pv_objDocument(lv_objDocument); 

Sub SelectAndViewAFrame Using pv_objDocument
  
  Local lv_objGraphic;
  Local lv_objPgf;
  Local lv_rangePgf;
  Local lv_btnRet;
   
  Set lv_objGraphic = pv_objDocument.FirstGraphicInDoc;
  Loop While(lv_objGraphic)
If lv_objGraphic.ObjectName = 'AFrame'
  
  Set lv_objPgf = lv_objGraphic.pgf;
  New TextRange NewVar(lv_rangePgf) Object(lv_objPgf);
  Set pv_objDocument.TextSelection = lv_rangePgf;
  Execute FC HighClear;
  Set lv_objGraphic.GraphicIsSelected = True;
  MsgBox 'Press Yes or No' Mode(YesNo) Button(lv_btnRet);
  If lv_btnRet = YesButton
Write Console 'The user pressed the Yes button';
  Else
Write Console 'The user pressed the No button';
  EndIf
EndIf
Set lv_objGraphic = lv_objGraphic.NextGraphicInDoc;
   EndLoop
 EndSub

Best regards   
Karsten  


Sie können kein DSL bekommen?  
Auch vergleichbare Techniken sind bei Ihnen Fehlanzeige?  
Sie sind nicht allein! Wir fordern gleiche Chancen für jeden! 
Unterstützen Sie uns mit Ihrer Unterschrift.   

www.petition.geteilt.de  
 

 

 

 

Hi all --   

   

Framescript question--Frame 7.0p579, FrameScript 4.1R2.  

   

I have a script that moves through a book and sets the left margin of  

each graphic to a certain distance based on the context of the anchored  

frame.  The basic logic is: If the preceding paragraph tag is A, set the  

margin to X.  If it's B, set it to Y ... and so on.  This part works  

great.  

   

I now have a book that requires individual inspection of each graphic.  

I need to see it to know whether to change it.  The problem is that when  

my existing script runs, it doesn't bring each anchored frame into view  

in the Frame window.  All I see is the first page of the document and a  

bunch of flickering as the graphics are changed.  Is there a way to get  

the focus of the window to change as part of the script, so that I just  

click Yes or No for each frame?  I'd rather not have to scroll manually  

to each anchored frame.  

   

Thanks for any wisdom!  

Anita  

   

   

   

   

Anita Maria Gutierrez  

Principal Curriculum Developer  

Sage Software  

15195 NW Greenbrier Parkway  

Beaverton, Oregon 97006  

(503) 439-7286  

   

___  

 

 

You are currently subscribed to Framers as [EMAIL PROTECTED]  

 

Send list messages to [EMAIL PROTECTED]  

 

To unsubscribe send a blank email to  

[EMAIL PROTECTED]  

or visit   

http://lists.frameusers.com/mailman/options/framers/frameusers%40natebus.de  

 

Send administrative questions to [EMAIL PROTECTED] Visit  

http://www.frameusers.com/ for more resources and info.
___


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

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

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.