Popclip Extension for highlighting in DEVONthink and PDF Expert
Last updated Sep 19, 2022 | Originally published Sep 19, 2022
The Popclip Extension below makes highlighting selected text quick and easy in both PDF Expert and DEVONthink. (If you use something else to review PDFs, it should be trivial to edit the script to use that application and its menu items instead.)
# PopClip Highlight
name: Highlight
required apps: [com.devon-technologies.think3, com.readdle.PDFExpert-Mac]
icon: symbol:highlighter
applescript: | # pipe character begins a multi-line string
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp as string
if frontAppName contains "PDF Expert" then
tell application "System Events"
tell application process "PDF Expert"
click menu item "Highlight" of menu of menu bar item "Annotate" of menu bar 1
end tell
end tell
else if frontAppName contains "DEVONthink 3" then
tell application "System Events"
tell application process "DEVONthink 3"
click menu item "Highlight" of menu of menu bar item "Format" of menu bar 1
end tell
end tell
end if
end tell Popclip Extension for highlighting in DEVONthink and PDF Expert