The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
How do I change the font in every page of a multi-page doc? (Applescript?) Thread Tools Search this Thread Display Modes
I have an 80 page document which was opened on another machine without the original font installed and consequently I have to change the font back throughout the document.

How do I do this?

Thinking about applescript... but my applescript skills aren't good enough.

I can't work out how to "select all" on the page and change the font. This is where I got to, but can't work out anything else.

tell application "OmniGraffle Professional 5"
set theDocument to front document
set canvasCount to count of canvases of theDocument

repeat with canvasNumber from 1 to canvasCount
set canvas of front window to canvas canvasNumber of theDocument
select all
set font to "bentonsansf"
end repeat
end tell

Thanks in advance!

Andrew
 
-Bump?-
 
Andrew, I'd send in an email about this, as well. (See my response in your other thread.)
 
Just dashing off a quick reply here, but you should be able to do something along the lines of

Code:
tell application "OmniGraffle Professional 5"
  tell document "Some Document"
    repeat with ACanvas in every canvas
      repeat with AGraphic in every solid of ACanvas
        if (the text of AGraphic ≠ "") then
          set the font of the text of AGraphic to "Benton Sans"
        end if
      end repeat
    end repeat
  end tell
end tell
You could add other conditions to the "if" statement, if there are other graphics you don't want to modify.
 
Ooops just saw your reply. Thanks for the script. I'll give it a go!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Margins in multi-page pdf TomHarle OmniGraffle General 0 2013-04-08 04:08 AM
Change Page Setup params through AppleScript GUI Scripting for OmniGraffle 5 coswald007 AppleScripting Omni Apps 1 2011-10-13 05:43 AM
creating multi-page pdfs sprugman OmniGraffle General 1 2010-08-05 08:05 AM
Multi-page pdf's azxplorer OmniOutliner 3 for Mac 1 2006-09-07 05:01 PM
can I get rid of the multi page lines coalxman OmniGraffle General 0 2006-07-14 06:57 PM


All times are GMT -8. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.