What are you wanting to do with underlined character? Move focus to it? Remove all of them? Change underline and some text to <span class="ul">My text</span>
If all you want to do is find the first underlined character, a macro does not quite seem worth it to me. I am going to do a couple tests though. Best wishes, Jonathan Cohn > On Jun 29, 2022, at 16:56, christopher moore <chris.w...@gmail.com> wrote: > > Hi Jonathan, > I’m searching for underline characters in a text document. I’d like a key > macro as follows: > > down-arrow > vo+f > _ > enter > vo+w > > What are your thoughts? > > Thanks > Chris > >> >> Not that I’m aware of, but I know AppleScript fairly well. What are you >> trying to do? >> >> The scripting dictionary for TextEdit is fairly limited. The application >> only has a document object and the document object has a standard suite text >> object. You can create attachment object and place them in a part of the >> text. I'm not very familiar with the possible attributed strings in text >> objects, but I suspect that you can set things like number and bulleted >> lists, font info and justification. >> >> So, if you want to create a VO key that opens textedit and creates a new >> document with the date in it and a first line of Notes for Today. That >> should be fairly >> Sent from my iPhone >> >>> On Jun 29, 2022, at 3:00 PM, christopher moore <chris.w...@gmail.com> wrote: >>> >>> Hello, >>> Are there any tutorials on apple-script? I want to write a simple keyboard >>> macro for textEdit. >>> simple. >> If you want something that will enter Jonathan C Cohn every time you type >> xic then AppleScript is not the right tool, and for that matter, since >> TextEdit uses the standard text editing widget that most Apple based tools >> use for text, some more advanced functions might be better handled with the >> text input tools suite this is where the controls that move you to the end >> of line when you type control-E and the beginning of line with control-A are >> defined. >> >>> TIA >>> Chris >>> >>> -- >>> The following information is important for all members of the Mac >>> Visionaries list. >>> >>> If you have any questions or concerns about the running of this list, or if >>> you feel that a member's post is inappropriate, please contact the owners >>> or moderators directly rather than posting on the list itself. >>> >>> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: >>> mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at >>> caraqu...@caraquinn.com >>> >>> The archives for this list can be searched at: >>> http://www.mail-archive.com/macvisionaries@googlegroups.com/ >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "MacVisionaries" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to macvisionaries+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/macvisionaries/22EB4948-37F8-41E0-A490-BC1302997104%40gmail.com. >> >> -- >> The following information is important for all members of the Mac >> Visionaries list. >> >> If you have any questions or concerns about the running of this list, or if >> you feel that a member's post is inappropriate, please contact the owners or >> moderators directly rather than posting on the list itself. >> >> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: >> mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at >> caraqu...@caraquinn.com >> >> The archives for this list can be searched at: >> http://www.mail-archive.com/macvisionaries@googlegroups.com/ >> --- >> You received this message because you are subscribed to the Google Groups >> "MacVisionaries" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to macvisionaries+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/macvisionaries/E48A99D9-6B1D-4A38-96E2-C9A039CD3EB3%40gmail.com. > > -- > The following information is important for all members of the Mac Visionaries > list. > > If you have any questions or concerns about the running of this list, or if > you feel that a member's post is inappropriate, please contact the owners or > moderators directly rather than posting on the list itself. > > Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: > mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at > caraqu...@caraquinn.com > > The archives for this list can be searched at: > http://www.mail-archive.com/macvisionaries@googlegroups.com/ > --- > You received this message because you are subscribed to the Google Groups > "MacVisionaries" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to macvisionaries+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/macvisionaries/8D4B5A68-C61E-4D36-9BA8-4A5AC4ED8564%40gmail.com. -- The following information is important for all members of the Mac Visionaries list. If you have any questions or concerns about the running of this list, or if you feel that a member's post is inappropriate, please contact the owners or moderators directly rather than posting on the list itself. Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at caraqu...@caraquinn.com The archives for this list can be searched at: http://www.mail-archive.com/macvisionaries@googlegroups.com/ --- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To unsubscribe from this group and stop receiving emails from it, send an email to macvisionaries+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/macvisionaries/876FFF68-7B53-4C18-9D73-B6AE32B116E7%40gmail.com.