Skip to content

Instantly share code, notes, and snippets.

View yannbolliger's full-sized avatar

Yann Bolliger yannbolliger

View GitHub Profile
@yannbolliger
yannbolliger / export_pdf.applescript
Last active October 1, 2021 09:54
Export pages to pdf with Apple Script.
#!/usr/bin/env osascript
on run argv
set script_folder to (POSIX path of ((path to me as text) & "::"))
set this_folder to (script_folder & (item 1 of argv))
tell application "System Events"
set these_files to files of folder this_folder whose name extension is "pages"
end tell