Apple script trash it12/22/2023 # "Salmon", "Cantaloupe", "Banana", "Honeydew", "Flora", "Spindrift", "Ice", "Sky", "Orchid", "Lavender", "Bubblegum", "Carnation" # "Maraschino", "Tangerine", "Lemon", "Lime", "Spring", "Sea Foam", "Turquoise", "Aqua", "Blueberry", "Grape", "Magenta", "Strawberry", # "Cayenne", "Mocha", "Asparagus", "Fern", "Clover", "Moss", "Teal", "Ocean", Midnight", "Eggplant", "Plum", "Maroon", # Valid colors for the Pencils tab are: # Change the color of the selected text.Ĭlick (every button of toolbar 1 whose description is "Pencils") Repeat until (exists window "Colors" of application process "Notes") If not (exists window "Colors" of application process "Notes") then # Show the Colors window, if not visible. With the text already selected in Notes, the following example AppleScript code works for me in macOS Catalina, using US English for the Language:įor the Pencils tab: tell application "Notes" to activate Since you did not specify a color or which tab on the Colors window you want to work with, I'll show two examples, one for the Pencils tab and the other for the Color Palettes tab. To automate changing the color of selected text in Notes it can be done with UI Scripting, which you are already using to click Strikethrough on the menu.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |