Showing posts with label macosx. Show all posts
Showing posts with label macosx. Show all posts

Thursday, April 30, 2015

Sent email Auto Responder AppleScript for Mail.app

After a long hiatus, I'd like to share something I worked on today.

A friend of mine who uses Apple Mail sent out a lot of emails and wanted an easy way to send an additional email to all of them.

I searched the 'net but couldn't find anything that would precisely work for his scenario. I tried building a workflow with Automator but it doesn't seem to have the necessary actions. In the process, I realized that AppleScript is powerful enough. So I taught myself AppleScript and wrote my first script. Don't hesitate to contact me if you have any suggestions.

To use this script:
  1. Launch Apple's Mail.app
  2. Disable your email signature because it may overwrite the email contents.
  3. Select the "Sent" emails that you wish to respond to the same recipients.
  4. Modify the below code as desired, most importantly, theContent variable for the body of the email that you wish to send.
  5. Click AppleScript Editor's "Run" button.
Below is the code and as always, IN NO EVENT SHALL I BE LIABLE FOR WHAT YOU DO WITH IT :-)
tell application "Mail"
    -- Make sure to follow steps #1 and #2
    set theSelection to selection
    if theSelection is {} then return
    activate
    repeat with thisMessage in theSelection
        tell thisMessage
            -- For each sent message selected, get the "To:" field
            set recipientAddress to {address} of its recipients
            -- Equivalent of hitting the "Reply" button
            set theOutgoingMessage to reply thisMessage with opening window
        end tell
        -- If you do not wait half a second then the message body might not get written.
        delay 0.5
        tell theOutgoingMessage
            -- Delete the "To" field because replying to your own sent email will
            -- auto-populate the "To" field with your own email address.
            set address of to recipients to ""
       -- This will automatically set the "To" field to the person you want to reply to      
       -- This script will fail if the original email has a CC, BCC, or multiple TO recipients.

            make new recipient at end of to recipients with properties {address:recipientAddress}
            -- If you wish, prepend some text to the subject.
            set subject to "Additional info " & subject
            -- Most important part of this script!!!
            -- This will be your email response so CHANGE the contents below

            set theContent to "Hi," & return & return & "I just wanted to followup my previous email with some additional very important information." & return & return & "Please take note of this very important information and, if desired, please take action." & return & return & "Thanks again." & return & return & "Best Regards," & return & "The Important Info Messenger."
            set content to theContent
            -- Uncomment this line to automatically send the email
            -- send theOutgoingMessage
        end tell
    end repeat
end tell

Sunday, June 3, 2007

Customize any and every webpage!

First get the GreaseMonkey Firefox extension.
Then write your own script or install some of the hundreds available at UserScripts.org.

Here are my recommendations:
User Scripts Search Sorting - With Install Rate improves the sorting on userscripts.org making it easier to find scripts. Use it to toggle between 'install rate' or 'installs'

After a secure login gmail defaults to HTTP so I got tired of manually switching it back into HTTPS. Secure-em-All automagically secures many webmail sites.

Sourceforge Direct Links saves time with direct download links from sourceforge projects. But save yourself some time and do not install either cleaner layout scripts because they no longer work.

Download Video allows you to download videos from youtube, gvideo, and myspace.

Textarea Backup w/Restore Buttons automatically backs up the text you type so you'll never accidentally loose another email. It has a restore button so it's better than the script that automatically restores text [when you do not want it to].

You'll find tons more for the sites you use and dont worry you can turn greasemonkey or any script on/off with a click of a button.

View the source before you install each script just to verify it doesnt do anything sketch and I hope you find it as useful as I do.

Saturday, March 31, 2007

View blocked websites

To circumvent internet filters you must use a web proxy.

The best way to do this is to use the tor network.
tor, is free, opensource and developed by the EFF, so it's trustworthy and safe to use.
http://tor.eff.org/index.html.en

tor on its own is tricky to setup so i recommend a very easy to use package called vidalia which installs tor and other necessary apps.

http://www.vidalia-project.net/download.php
this will installed tor, privoxy, and the tor button for firefox.

once installed, filter-free surfing is as simple as clicking the'Tor Enable' text button in the bottom right corner of firefox.

if you dont already surf with firefox, download it here

if you need to install the tor button then download it here

Saturday, February 17, 2007

free and essential mac os x software

A list of the freely downloadable Mac software that I use on a daily basis.

web: Camino is Firefox but nicer looking and faster.
However, I also use Firefox because of it's many useful add-ons.
check out: adblock, greasemonkey, and nukeAnything
office: NeoOffice is OpenOffice but nicer looking.
video: play most video formats with VLC, mplayer,
or if need be use RealPlayer or Windows Media Player
p2p: standard bittorrent client or feature-rich azureus BT client
aMule for Donkey2k network and
Poisoned for old school Gnutella G1, G2, and limewire networks
chat: multi-protocol chat client adium
voip: skype defacto internet voice app
mp3: iEatBrainz will automagically fix bad or unlabeled id3 tags.
games: macMame download some ROMs for some old school fun
remote: CotVNC great VNC client
Vine Server a VNC server to remotely control your mac
utility: MissingMediaTools is great for burning CD/DVDs when the builtin apps dont work
HandBrake to convert DVDs
unix: 1000s of unix apps, all very easily installable with fink.
viewer: Chmox will open MS .chm help files
volunteer: use your mac to help find medical cures by running Folding at Home
to make it run automatically go to:
system prefs > Accounts > login items > and add.