Created
February 12, 2013 09:04
-
-
Save Markoutte/4761093 to your computer and use it in GitHub Desktop.
Sparrow service “New Email With Attachment” in OS X
This file contains hidden or 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
| Once open, click on Service, then Choose. Change the drop down menus near the top to say, “Service receives selected files or folders in any application. Then, move over to the Actions pane and type “Applescript” into the search field there (labeled Name). The only available action that’s left is “Run AppleScript.” Drag it over to the pane on the right, where it says, “Drag actions of files here to build your workflow.” | |
| Now, select the resulting AppleScript you see there, and delete it. Copy the below and paste it into the window, instead: | |
| on run {input, parameters} | |
| tell application "Sparrow" | |
| activate | |
| set theMessage to make new outgoing message | |
| tell theMessage | |
| repeat with ii in input | |
| make new mail attachment with properties {filename:ii as alias} | |
| end repeat | |
| compose | |
| end tell | |
| end tell | |
| end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment