foxtrot
-
Posts
3 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by foxtrot
-
-
Thank you for the pointers. I modified the end of the 'run script' to reflect the following:
else lib's createNote(first paragraph of q, q, notesFolder, notesAccount) set theResult to "Created note: " & q tell application "Finder" open (every item of folder "Macintosh HD:Users:USERNAME:Library:Containers:com.apple.Notes:Data:Library:CoreData:ExternalRecords:XXXX-XXXX-XXXXX-XXXXX:IMAPNote:_records:0" whose modification date is ((get current date))) end tell end if return theResult end alfred_script
It seems to work as intended. My only remaining curiosities are "is this inefficient (best practice)" and "can I place/focus new text input at the end of the now-filled 'query' text"?
-
Jack James,
Thank you for sharing your work flow.
I do have a question, though: Would it be possible to open Notes.app and focus on the newly created note? It seems picky, but it would greatly streamline the creation process for me. My conceptualization of the process would be to "simply" open the newest '.notesexternalrecord' file in the notes folder, but I have no idea where to start with this modification. Any help would be much appreciated.
Notes
in Share your Workflows
Posted · Edited by foxtrot
Found editable alfred_library.scpt on GitHub (the reminders workflow), implemented above suggested changes, (again) encountered errors. Google search indicated the errors were likely Mavericks related: 'as text' is apparently now required. Working changes included below. Thank you again for your help!