Re: Scripting TextEdit, round II
Re: Scripting TextEdit, round II
- Subject: Re: Scripting TextEdit, round II
- From: Nelson Byrne <email@hidden>
- Date: Fri, 12 May 2006 10:09:07 -0700
OK, I think I'm getting it. Thanks for all the help; this is a great
list.
You all told me "references, references, references" and you were
right. This works:
-------------------------
property hitlist : {"MANNY", "MOE", "JACK"}
tell application "TextEdit"
get item 1 of (get documents whose name contains "PEP") returning
theDoc
tell theDoc to get words of theDoc returning theWords
end tell
considering case
repeat with i from 1 to number of items in theWords
if item i of theWords is in hitlist then
(a reference to word i of theDoc) returning wordref
set size of first character of wordref to 24
set font of wordref to "Palatino Bold"
end if
end repeat
end considering
-------------------------
Regards, especially to those who helped me understand this.
Nelson
_______________________________________________
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