Hello guys,
I love the possibility of sending the content of a webpage using Safari and Mail. The problem is: I don't use Mail.
I like Sparrow better. So if I try share a page with someone using an email, Sparrow will only receive the link of the page, instead of the content, like Mail would do.
So I decided to create an Apple Script to do this task.
This is the idea:
Get Safari's current tab, go into the Reader view, select all content, copy, create a new email on Sparrow and finally paste the copied content.
Ok, it's not as smooth as Safari + Mail would do, but it's better then nothing.
My script works well, except when it pastes the HTML content into Sparrow. If I manually paste (command + v), it works perfectly, but if my script pastes the content, it looses all the formatting. This is my script:
What do you think I should do???
Thanks.
I love the possibility of sending the content of a webpage using Safari and Mail. The problem is: I don't use Mail.
So I decided to create an Apple Script to do this task.
This is the idea:
Get Safari's current tab, go into the Reader view, select all content, copy, create a new email on Sparrow and finally paste the copied content.
Ok, it's not as smooth as Safari + Mail would do, but it's better then nothing.
My script works well, except when it pastes the HTML content into Sparrow. If I manually paste (command + v), it works perfectly, but if my script pastes the content, it looses all the formatting. This is my script:
Code:
tell application "Safari" to activate
tell application "System Events"
keystroke "r" using {command down, shift down}
delay 0.25
keystroke "a" using command down
delay 0.25
keystroke "c" using command down
delay 0.25
keystroke "r" using {command down, shift down}
tell application "Sparrow"
activate
set theMessage to make new outgoing message with properties {content:get the clipboard}
tell theMessage
compose
end tell
end tell
end tell
What do you think I should do???
Thanks.