
Finally, since the first part of the script activated Notational Velocity, thereby bringing it to the foreground, the script concludes by hiding the NV window from view so you can go back to whatever you were doing.
#WHERE ARE FILES STORED IN NOTATIONAL VELOCITY CODE#
It also adds key code 53 (which has the same effect as entering the Escape key) so that the query is cleared from the search bar after the new note is created. The second part of the script uses System Events to simulate the process of hitting return, which you would ordinarily do in Notational Velocity to create your new note after entering its title in the search bar. The first part of this Applescript tells Notational Velocity to search for whatever text is between the quotation marks after search (in this case, Name of the new note).

Set visible of process "Notational Velocity" to false (If you are new to Applescript, check out the Ultimate Beginner’s Guide.) This makes it relatively simple to write an Applescript that will create a new note in Notational Velocity, like this: tell application "Notational Velocity" With the release of Version 2.0β4 at the beginning of 2011, however, it became possible to "search" for text strings in NV using Applescript. If you want to open an existing note, you also go to the search bar and begin entering the text that you want to find. If you want to create a note, you go to the search bar, begin typing the title of your new note, and click enter to create it.


Most of these tricks depend on using an apparently little-known feature of Notational Velocity, which is the ability to perform the "search" command on your notes using Applescript.Īs Notational Velocity users know, what makes the program unique is the fact that most of its functions begin in the "search" bar. Towards the end of that post, I also hinted that I have been able to automate parts of my system by using some Applescript and Automator tricks. In an earlier post, I explained how I use plain text files and Notational Velocity as a task-management alternative to the GTD program Things.
