• 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: Scripting TextEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting TextEdit


  • Subject: Re: Scripting TextEdit
  • From: deivy petrescu <email@hidden>
  • Date: Fri, 5 May 2006 21:29:21 -0400


On May 5, 2006, at 20:39, Nelson Byrne wrote:

What's wrong with this?

tell application "TextEdit"
--TextEdit has two elements of its own: documents and windows. No properties.
get front document returning theDoc
tell theDoc
--a TextEdit Suite document has a text property, part of the Text Suite
get text of theDoc returning theText -->"Recitative"
--Text Suite texts have a font property
font of theText -->"Can't get font of \"Recitative\"."
end tell
end tell


I had hoped to change the size of certain characters in a document, but I didn't get far. Can someone help please?

Regards,

Nelson Byrne

The text \"Recitative\" does not have a font property.

This works
<script>
tell application "TextEdit"
--TextEdit has two elements of its own: documents and windows. No properties.
get front document returning theDoc
tell theDoc
get its text's properties returning theText
-->(*class:text, size:21.0, color:0, 0, 0, font:BertramLET*)
font of theText -->BertramLET
end tell
end tell


</script>


Deivy _______________________________________________ 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: 
 >Scripting TextEdit (From: Nelson Byrne <email@hidden>)

  • Prev by Date: Scripting TextEdit
  • Next by Date: Re: Scripting TextEdit
  • Previous by thread: Scripting TextEdit
  • Next by thread: Re: Scripting TextEdit
  • Index(es):
    • Date
    • Thread