Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Quick note creation in Mail via AppleScript Apps
I'm always searching for something to write on when I want to take a quick note. I know that Mail in 10.5 includes a note function, but it's usually been too much trouble to launch Mail and then navigate the menus to select a new note.

So I finally put together this little AppleScript that I use with Quicksilver's hotkeys to launch a new note with just one keystroke:
tell application "Mail"
  activate
end tell

tell application "System Events"
  tell process "Mail"
    click the menu item "New Note" of the menu "File" of menu bar 1
  end tell
end tell
I save the script as an application, and assign it to the F7 key in Quicksilver. Now when I need to take a quick note, it's just one key press away. As an alternative to using Quicksilver's hotkey, this script can be saved as an application and placed in the Dock, making a new note just one click away.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[8,425 views]  

10.5: Quick note creation in Mail via AppleScript | 9 comments | Create New Account
Click here to return to the '10.5: Quick note creation in Mail via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Quick note creation in Mail via AppleScript
Authored by: asher on Jul 09, '08 08:34:28AM

I made a text file using TextEdit, named it notes. Over the years I have quite a collection of notes in the file about anything and everything. I keep the file in the dock, one click away. When I need to find something, cmd f in the file, type in an appropriate word and there it is. Simplest possible note data base you could ask for.



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: DeltaTee on Jul 09, '08 09:58:53AM

QuickSilver also has built-in commands for creating and appending to text files.



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: gcarnold on Jul 09, '08 11:30:46AM

one other benefit of using Mail Notes is that I can access the notes with my iPhone.



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: Pasi on Jul 09, '08 12:05:21PM

Is it possible to edit the notes on the iPhone?

And would it be easy to write a script that targets a note called "Inbox"?



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: cwanja on Jul 09, '08 05:12:34PM

Would it be possible to make the same thing but for stickies??

---
 Genius - Retail Store



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: akamitka on Jul 09, '08 09:31:07PM
Another script for note creation. A bit shorter...
tell application "System Events"
	tell application "Mail" to activate
	keystroke "n" using {command down, control down}
end tell


[ Reply to This | # ]
10.5: Note creation in Stickies
Authored by: yesiamnhoj on Jul 10, '08 01:23:53AM

Hi Chris,

Replace Mail with Stickies in the above script.

tell application "Stickies" to activate

tell application "System Events"
	tell process "Stickies" to click the menu item "New Note" of the menu "File" of menu bar 1
end tell

Best wishes

John M



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: osxpounder on Jul 10, '08 10:48:55AM

I use an alternative method:

I click an empty space in Finder and then do CMD-SHIFT-Y, which opens Stickies and creates a new Stickie note.

Sometimes I just click the Desktop, which will lead to a Stickie with a folder icon in it, but I just backspace once and type my note. If I had a folder or file selected when I made a Stickie [should I say "Sticky"?], the note has an icon that looks like that item. It seems to be just an icon, as far as I can tell.

I don't have to save Stickies [though I can export a note], so it's pretty darn quick. Just do the keystroke, and start typing. We can also put the Stickies app in our Dock or Finder toolbar, and I just discovered we can even put it in our Finder sidebar [all this in Leopard].

I don't want you to think I'm saying my way is better than your hint -- I'm glad you posted your hint. Just wanted to share this, too, since it's related.



[ Reply to This | # ]
10.5: Quick note creation in Mail via AppleScript
Authored by: khatchad on Jul 29, '09 02:28:13PM

Actually, I didn't need an apple script for this at all to use with QuickSilver. I just traversed Mail -> Menu Items -> File -> New Note and made it into a custom trigger.



[ Reply to This | # ]