Created
January 2, 2012 11:09
-
-
Save pelletier/1550311 to your computer and use it in GitHub Desktop.
AppleScript to send file to Kindle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application "Mail" | |
activate | |
end tell | |
tell application "Finder" | |
set visible of process "Mail" to false | |
end tell | |
tell application "Mail" | |
set newMessage to make outgoing message with properties {visible:true, content:"", subject:"convert"} | |
tell newMessage | |
make new to recipient at end of to recipients with properties {address:"[email protected]"} | |
make new attachment with properties {file name:input} | |
end tell | |
send newMessage | |
end tell | |
tell application "Finder" | |
set visible of process "Mail" to false | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment