John’s posterous

I always did like sending email 
Filed under

applescript

 

Safari Selection to Posterous

tell application "Safari"
            
            set theURL to URL of front document
            set theTitle to do JavaScript "document.title" in front document
            set selecTxt to (do JavaScript "(getSelection())" in document 1)
            set selecTxt to "<div style=\"font-size:18px;font-family: Georgia,serif;\"><div style=\"float:left;font-size:64px\">“</div>" & selecTxt & "</div>"
yle="color: #000000;">            set theBody to selecTxt & return & return & "Quoted from:" & return & theURL
end tell
tell application "Mail"
            set newMessage to make new outgoing message with properties {subject:theTitle, content:theBody}
            tell newMessage
                        -- Default is false. Determines whether the compose window will
                        -- show on the screen or whether it will happen in the background.
                        --comment next line for real use
                        set visible to true
                        set sender to "<Fill_IN_EMAIL>"
                        make new to recipient at end of to recipients with properties {name:"posterous", address:"posterous@posterous.com"}
                        
                        --send --un comment this send to send
            end tell
end tell

Loading mentions Retweet
Filed under  //   applescript   posterous  

Comments [2]

lemon

iphoto pic resize and mailed via applescript

Loading mentions Retweet
Filed under  //   applescript   photo  

Comments [3]

Safari Title and Url to Posterous

tell application "Safari"

set theURL to URL of front document

set theTitle to do JavaScript "document.title" in front document

end tell

tell application "Mail"

set newMessage to make new outgoing message with properties {subject:theTitle, content:theURL}

tell newMessage

-- Default is false. Determines whether the compose window will

-- show on the screen or whether it will happen in the background.

set visible to true

set sender to "<fill in emall address to send from>"

make new to recipient at end of to recipients with properties {name:"posterous", address:"post@posterous.com"}

--send

end tell

end tell

Loading mentions Retweet
Filed under  //   applescript   posterous  

Comments [4]

AppleScript to send selected text in Safari to posterous

tell application "Safari"

set theURL to URL of front document

set theTitle to do JavaScript "document.title" in front document

set selecTxt to (do JavaScript "(getSelection())" in document 1)

set theBody to selecTxt & return & return & theURL

end tell

tell application "Mail"

set newMessage to make new outgoing message with properties {subject:theTitle, content:theBody}

tell newMessage

-- Default is false. Determines whether the compose window will

-- show on the screen or whether it will happen in the background.

set visible to true  

set sender to "<fill in mail to send from here>"

make new to recipient at end of to recipients with properties {name:"posterous", address:"post@posterous.com"}

--send remove comment to send

end tell

end tell

Loading mentions Retweet
Filed under  //   applescript   posterous  

Comments [0]

macosxhints.com - Save selected browser text via AppleScript

tell application "Safari"
set selecTxt to (do JavaScript "(getSelection())" in document 1)
set theurl to (get URL of document 1)
set pgTitl to (do JavaScript "document.title" in document 1)
end tell

http://www.macosxhints.com/article.php?story=20080207080505152

Loading mentions Retweet
Filed under  //   applescript  

Comments [0]