font in applescript w/ 2.2 beta

Ciaran P. A. Connelly cpac at mac.com
Tue Jan 21 22:20:04 PST 2003


So I wrote a script which I eventually got to work that even though I 
couldn't seem to set the font manually, I could read it from one row 
and apply it to others.

the relevant part looked like this:

	set theDoc to front document
	set myFont to the font of the topic of the last row of theDoc
	make new row at end of rows of theDoc
	set caseRow to the last row of theDoc
	set topic of caseRow to "Case Name"
	set font of topic of caseRow to myFont

The result was a row called "case name" that was in whatever font the 
last row of my document was. Now, with 2.2 beta, this doesn't work 
anymore.

Thoughts/suggestions?




More information about the OmniOutliner-Users mailing list