Skip to content

Instantly share code, notes, and snippets.

@jeffla
Forked from brettkelly/InstallSendPdfToEvernote
Last active January 2, 2020 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeffla/50de60fd48cdd2c5bc82 to your computer and use it in GitHub Desktop.
Save jeffla/50de60fd48cdd2c5bc82 to your computer and use it in GitHub Desktop.
tell application "Finder"
try
set appPath to (path to application "Evernote" as text)
on error
display dialog "Couldn't find Evernote. Is it installed?"
end try
try
set libPath to (path to library folder from user domain as text)
set newFolder to make new folder at libPath with properties {name:"PDF Services"}
end try
try
set printPath to (path to library folder from user domain as text) & "PDF Services"
make new alias at printPath to appPath with properties {name:"Send PDF to Evernote"}
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment