• 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
Re: Set Contents not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set Contents not working


  • Subject: Re: Set Contents not working
  • From: Ted <email@hidden>
  • Date: Mon, 14 Nov 2005 16:13:53 -0800

tell application "TextEdit"
	make new document
	set the text of front document to "Database report on " & dName &
return & return
end tell

Thanks a million, Kai. That fixed the problem. However, there's one last thing that doesn't work properly. Here's the code:


tell application "TextEdit"
make new document
set the text of front document to "Database report on " & dName & return & return
set the font of the last paragraph of front document to "Courier"
set the size of the last paragraph of front document to "12"
...
end tell


The lines that begin with "set the font..." and "set the size..." don't appear to do anything. The entire text is only a single font of a single size. Again, I've studied the dictionary, but I don't see what could be wrong. Any ideas?

Thanks again,
Ted

Superior Shelving Systems
http://www.superiorshelving.com/

_______________________________________________
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


  • Follow-Ups:
    • Re: Set Contents not working
      • From: kai <email@hidden>
  • Prev by Date: Scripting M$ Visio?
  • Next by Date: Re: Scripting M$ Visio?
  • Previous by thread: Re: Set Contents not working
  • Next by thread: Re: Set Contents not working
  • Index(es):
    • Date
    • Thread