Notes2md
Exports Apple Notes into Markdown using Rust and AppleScript
Install / Use
/learn @vacekj/Notes2mdREADME
Apple Notes Exporter
A Rust library and CLI tool for exporting Apple Notes to Markdown files.
Features
- Export all notes from Apple Notes to Markdown files
- Preserve folder structure
- Handle embedded images and attachments
- Support for frontmatter metadata
- Clean and modern Markdown output
Installation
As a CLI tool
cargo install apple-notes-exporter
As a library
Add this to your Cargo.toml:
[dependencies]
apple-notes-exporter = "0.1.0"
Usage
CLI
# Export notes to current directory
apple-notes-exporter
# Export notes to specific directory
apple-notes-exporter -o ./my-notes
# Export without using attachments folder
apple-notes-exporter --use-attachments false
# Export without subdirectories
apple-notes-exporter --use-subdirs false
Library
use apple_notes_exporter::{export_notes, ExportConfig};
use std::path::PathBuf;
fn main() -> anyhow::Result<()> {
let config = ExportConfig {
output_dir: PathBuf::from("./my-notes"),
use_attachments: true,
filename_format: String::from("&title"),
subdir_format: String::from("&folder"),
use_subdirs: true,
};
let notes = export_notes(&config)?;
println!("Exported {} notes", notes.len());
Ok(())
}
Requirements
- macOS (uses AppleScript to access Notes)
- Rust 1.70 or later
License
MIT
Related Skills
node-connect
354.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
