Pages

Showing posts with label notes. Show all posts
Showing posts with label notes. Show all posts

Monday, January 27

My Morning Workflow with my iPad, Apple Notes, Reminders, and Shortcuts

Experimenting with posting over on Medium.  Seems to be easier, and has some very interesting features.

Anyway, my first post is up over there:


Since I have lots of readers here, I figured they might be interested.

Please leave comments below.

Monday, December 18

Deleting Duplicate Notes in Notes.app using AppleScript

I found myself digging through my Notes.app the other day and, lo and behold, there was a whole bunch of duplicate notes hanging around. Pretty sure I goofed and imported them twice or something along those lines.

To fix the mess, I whipped up a quick AppleScript that zapped the duplicates just by looking at the note titles. Since the folder wasn't a big mess and I was dealing with a pretty neat pile, I was cool with the script going on a deleting spree. Just to be safe, though, I did a quick sweep through the "Recently Deleted" folder afterward to make sure nothing important got caught in the crossfire.

Use with caution:

tell application "Notes"

set targetFolder to "Target" -- Change this to your folder name

if not (exists folder targetFolder) then

display alert "Folder not found"

return

end if

set theNotes to notes of folder targetFolder

set noteNames to {}

set duplicates to {}

repeat with aNote in theNotes

set noteName to name of aNote

if noteNames contains noteName then

set end of duplicates to aNote

else

set end of noteNames to noteName

end if

end repeat

repeat with duplicateNote in duplicates

delete duplicateNote

end repeat

if length of duplicates is 0 then

display dialog "No duplicates found"

else

display dialog (length of duplicates) & " duplicates deleted."

end if

end tell




Please leave comments below.

Wednesday, September 5

Is Evernote going away?

Evidently we don't know if Evernote is sticking around, since there seems to be some panic on the internet about it today.

https://appleinsider.com/articles/18/09/05/evernote-might-be-in-trouble-so-heres-how-to-get-your-notes-out-of-it-completely-and-safely

It is really easy to move your notes out of Evernote and into Notes.app on the Mac.  (Click the above link for the easy instructions.

However, if you use Hazel, to say, monitor the "Downloads" folder on your Mac, and if any files show up there (like a PDF for example) and you want to have it automatically saved to Notes.app.  (This is handy after you try it).

I wrote a little AppleScript to do this for you, (in Hazel) since I couldn't find one on the Internet, and it wasn't rocket science:

tell application "Notes"
set mynote to make new note at folder "PDFS"
make new attachment at mynote with data theFile
end tell

If you have a folder in Notes.app called "PDFS", it will create a new note in the folder for each file and attach the file to it (which for me, then syncs it with iCloud so the file is on all my devices). Pretty handy.

Anyway, putting this here in case any one else can use it.

Please leave comments below.