Select Category Allgemein (57) Blafasel (17) Elender Weltverbesserer (2) hubionmac.com (11) Kino Filme (4) NERV! (14) TV Serien (3) Wordpress (1) Fun (13) Bilder (1) Hardware (18) ipod (5) ps3 (4) synonlogy (2) Nice2Know (58) Apple Mail (5) Bootcamp (1) Bugs (2) links (15) OS X (14) scripting (6) Shortcuts (5) Snow Leopard (3) Spotlight (1) software (30) Software I Use (15) tools (2) Softwareschmiede (185) AppleScript (158) Address Book (9) Apple Mail (23) CDFinder (1) Excel (1) EyeTV (1) Finder (12) Google Chrome (1) ical (7) iPhoto (1) iTunes (11) Microsoft Word (1) Numbers (1) OS X (31) Outlook (1) Pages (1) Photoshop (2) Safari (11) Transmit 4 (1) Useful Snippets (43) Automator (2) Printing (2) pdf (6) Quartz Composer (3) ready2use (12) webdev (12) javascript (9) terminal (41) defaults write (11) Things I add to a new system (5)
Ausgewählten Text aus Safari als Email senden
tell application "Safari"
tell document 1
set selected_text to do JavaScript "var txt = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
}
else return;
"
set siteURL to URL
end tell
end tell
tell application "Mail"
activate
make new outgoing message with properties {visible:true, subject:"Something Interesting", content:"" & siteURL & return & return & selected_text}
end tell