Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like to send an email with automator and have a link that shows a couple words (for e.g. name of the site) instead of the whole URL like you can do with the add link inside of Mac OS. I have tried just writing the link as HTML as shown below but that didn't work. Is this possible?

<a href="http://foo.com">foo</a>
share|improve this question
    
I'm having difficulty understanding your question. Could you please give a few more details, or explain what it is that isn't working for you? –  Dori Jan 2 '11 at 7:32
add comment

1 Answer

up vote 1 down vote accepted

This is not possible.

Mail's AppleScript API also does not allow for proper RTF mail. The following fails to create a proper mail body with links and everything, something clearly there in /Developer/Applications/Utilities/Clipboard Viewer (part of Xcode 4):

tell application "Mail"
    set theRTF to the clipboard rule «class rtf »
    set msg to make new outgoing message with properties {subject:"Test", content:theRTF}
    make new recipient at end of to recipients of msg with properties {address:"danielbeck@example.org"}
    send msg
end tell

You can try to use GUI scripting to copy&paste rich text using the clip board and the actual Copy/Paste menu items.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.