• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Some TextEdit Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some TextEdit Questions


  • Subject: Some TextEdit Questions
  • From: Steve Suranie <email@hidden>
  • Date: Mon, 20 Jun 2005 12:35:40 -0400

I have this script which, when viewed on my screen seems to work, ie - the
text font and size changes but when I print out the file the font has been
changed but not the size.

Also, I was wondering if it is possible to change the orientation of a page
via AppleScript from portrait to landscape.

Thanks

Steve

tell application "TextEdit"
        open file printThisFile
        set textSize to size of text of front document
        set textFont to font of text of front document
        display dialog "The current text size is:" & return & return &
textSize & return & return & "Do you want to change that?" buttons {"Yes",
"No"}
        display dialog "Set the size of the text" default answer textSize
        set newTextSize to text returned of result
        set size of text of front document to textSize
        set font of text of front document to "Helvetica"
        save front document in printThisFile
        close front document
        print file printThisFile
    end tell


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[ann] Appscript Installer 1.1 (From: has <email@hidden>)

  • Prev by Date: Checking an applications dictionary for a command
  • Next by Date: Re: Droplet to organize incoming files in connection with FMP
  • Previous by thread: [ann] Appscript Installer 1.1
  • Next by thread: Checking an applications dictionary for a command
  • Index(es):
    • Date
    • Thread