Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Automator help: replace text in Mail

  • 02-12-2010 02:35PM
    #1
    Registered Users, Registered Users 2 Posts: 2,852 ✭✭✭


    Hi,

    I'm trying to use Automator to do something really simple in mail - in a message I'm creating, I want to replace one piece of text with another

    for example in the message, I want to replace the string

    ftp://ftp.d1023788-11.cp.blacknight.com//webspace/httpdocs/

    with

    http://

    I've tried to find a way to do this in Automator but I'm drawing a blank - anyone with any clues out there?

    Thanks,

    Hugh_C
    Tagged:


Comments

  • Banned (with Prison Access) Posts: 898 ✭✭✭Liameter


    You might be able to make a script something like this:

    tell application "Mail" to activate
    tell application "System Events"
    tell process "Mail"
    tell menu bar 1
    click menu bar item "Message"'s menu "Message"'s ¬
    menu item "Reply"
    end tell
    delay 0.5
    key code 117 -- Forward Delete
    key code 125 using command down -- down arrow
    key code 36 -- Return
    end tell
    end tell

    (This doesn't do what you want but it might give you some ideas.)


Advertisement