Skip to content

Instantly share code, notes, and snippets.

@maciekish
Forked from jeffla/InstallSendPdfToEvernote
Created April 30, 2016 09:00
Show Gist options
  • Save maciekish/62ec49a08f4ccb199d658ed102a06000 to your computer and use it in GitHub Desktop.
Save maciekish/62ec49a08f4ccb199d658ed102a06000 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