scripting font change in TextEdit / NoteTaker, etc
scripting font change in TextEdit / NoteTaker, etc
- Subject: scripting font change in TextEdit / NoteTaker, etc
- From: Michael Cytrynowicz <email@hidden>
- Date: Sun, 18 Jul 2004 20:02:30 +0200
Hi list,
I thought it would be pretty trivial, but I can't figure how to do it.
What I need to do is in TextEdit - and alsi in Notetaker - to be able to
change the font of selected text to, say, verdana 10.
In NoteTaker, likewise, I need to be able to select some entries and
change them all to say, Georgia 14.
I can select text in both apps, or select entries in NoteTaker using
applescript, but I can't for the life of me figure how to change the
font. Seems inaccessible.
Exploring both dictionaries showed that there is a property font of the
fist char in a given run (so is it an rtf thing?)
I tried finding a service that would do that - nope.
I tried GUI scripting - and I can't figure how (and if) it is possible
to target Cocoa Fonts panel with UI Browser. Apparently not.
What am I missing here? All I need is to change the font from a to b
!!!!????
Confounded,
Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.