![]() Set recipientAddresses to ((NSString's stringWithString:recipients)'s componentsSeparatedB圜haractersInSet:splitSet) as list Set splitSet to NSCharacterSet's characterSetWithCharactersInString:", :| " # just in case a different separator is used in the recipients string Set recipients to text returned of (display dialog "Enter comma separated list of email recipients :" default answer "") as text Set anchorTxt to text returned of (display dialog "Enter anchor text to replace URL in Mail message: " default answer "") Property NSCharacterSet : a reference to current application's NSCharacterSet Property NSSharingServiceNameComposeEmail : a reference to current application's NSSharingServiceNameComposeEmail Property NSSharingService : a reference to current application's NSSharingService Property NSUTF8StringEncoding : a reference to current application's NSUTF8StringEncoding Property NSAttributedString : a reference to current application's NSAttributedString Property NSString : a reference to current application's NSString # set DEBUG to true if you want to automatically send the email ![]() Use AppleScript version "2.4" - Yosemite or later VikingOSX,, Apple Support Communities, no warranties expressed or implied This script was adapted from and made possible by Sal Soghoian from the the following Not attempted or tested in Automator.Ĭode: - NSSharingService_HMTL_Mail.applescriptĬonstruct HTML email within Apple Mail by using NSSharingServiceĪssumptions for this script previous to running it:ġ) Dropbox folder is selected in the FinderĢ) Hyperlink to the Drop Box folder is previously copied to the clipboard This is an AppleScript Script Editor only solution when saved as an application. After an exhaustive search, I have found an alternative means to place HTML and actually links where desired in an Apple Mail message body. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |