Jump to content

foxtrot

Member
  • Content Count

    3
  • Joined

  • Last visited

About foxtrot

  • Rank
    Newbie

Recent Profile Visitors

338 profile views
  1. 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! --this is the bit that will open the note set old_delim to AppleScript's text item delimiters set AppleScript's text item delimiters to "/" set noteFile to (last text item of (theNote's id as text)) & ".notesexternalrecord" set AppleScript's text item delimiters to old_delim do shell script "find ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/ -name " & quoted form of noteFile & " |xargs open"
  2. 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"?
  3. 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.
×
×
  • Create New...