Some TextEdit Questions
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