Skip to content

Instantly share code, notes, and snippets.

View ZhuYouwei's full-sized avatar

Zhu Youwei ZhuYouwei

  • The University Of Hong Kong
  • Hong Kong
View GitHub Profile
@ZhuYouwei
ZhuYouwei / Export Notes.AppleScript
Last active August 14, 2021 12:50
Export Mac Notes to txt file
property outputPath : (path to desktop as text) & "export"
tell application "Finder"
if not (exists outputPath) then
make new folder at desktop with properties {name:"export"}
end if
end tell
tell application "Notes"
set Nf to text returned of (display dialog "Folder Name" default answer "Notes")