10.8: New Notes App Service

Apr 12, '13 07:30:00AM

Contributed by: Anonymous

I put together a simple Automator action that takes the selected text from any application and creates a new Note. This sort of thing should have been in the Services menu to begin with, but this powerful feature of OS X is often unsung and underused. Hope it helps.

Open Automator and create a new Service. Set the Service to receive selected text in any application from the drop down menus.

Drag Copy to Clipboard from the Utilities library into the workflow. Drag Run AppleScript from the Utilities library into the workflow.

Paste the below text in place of (* Your script goes here *):

tell application "Notes" to activate
tell application "System Events"
 click menu item "Notes" of ((process "Notes")'s (menu bar 1)'s 
  (menu bar item "Window")'s (menu "Window"))
 click menu item "New Note" of ((process "Notes")'s (menu bar 1)'s 
  (menu bar item "File")'s (menu "File"))
	keystroke "v" using {command down}
end tell
Save the Service with a name like New Note. Now when you right click on selected text you can find the New Note service in the Services contextual menu. When selected it creates a new note out of the selected text.

[crarko adds: I compiled the script and it seemed to work. I didn't test the Automator Service.]

Comments (18)

Mac OS X Hints