Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,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 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[5,022 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 whomever posted them. This site is not responsible for what they say.
10.5: Quick note creation in Mail via AppleScript
Authored by: asher on Wed, Jul 9 2008 at 8:34AM PDT
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 Wed, Jul 9 2008 at 9:58AM PDT
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 Wed, Jul 9 2008 at 11:30AM PDT
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 Wed, Jul 9 2008 at 12:05PM PDT
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 Wed, Jul 9 2008 at 5:12PM PDT
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 Wed, Jul 9 2008 at 9:31PM PDT
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 Thu, Jul 10 2008 at 1:23AM PDT

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 Thu, Jul 10 2008 at 10:48AM PDT
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 Wed, Jul 29 2009 at 2:28PM PDT
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 | # ]