Skip to content

Instantly share code, notes, and snippets.

View chatchavan's full-sized avatar

Chat Wacharamanotham chatchavan

View GitHub Profile
@chatchavan
chatchavan / export_keynote_png.scpt
Last active September 9, 2020 22:02
AppleScript for using Keynote PNG exports with in video editing
-- Export the Keynote presentation of the front window to a folder on the desktop as PNG
tell application "Finder"
set folderName to "Keynote export"
set folderPath to POSIX path of (path to desktop) & folderName
-- trash the previous export, if any
if ((exists folder (folderName) of desktop)) then
move my (POSIX file folderPath) to the trash
end if
@chatchavan
chatchavan / toggleSidecar.scpt
Created July 3, 2022 09:57
Toggle iPad Sidecar display (Tested on Monterrey 12.4)
use AppleScript version "2.4"
set iPadName to "ChatPad" -- TODO: Change to the name of your iPad
tell application "System Preferences" to activate
tell application "System Preferences"
reveal pane id "com.apple.preference.displays"
end tell
@chatchavan
chatchavan / README.md
Created November 14, 2022 12:08
This script will adjust all PDF comment annotations by replacing the name of the creator in the comment metadata and content with a new name.

Anonymize PDF comments

This script will adjust all PDF comment annotations by replacing the name of the creator in the comment metadata and content with a new name.

Requirement

  • Adobe Acrobat Pro DC

Setup Adobe Acrobat Preferences