|
|
An AppleScript to send an email about a page in Safari
For some unknown reason, 2 backslashes have disappeared from one line of this script. In the "tell myEmail" statement near the end of the script, the second line should read, "set content to ("\"" & SelectedText & "\"" & return & return & "More at " & PageURL)". As brucio observes, without the backslashes there will be a syntax error.
An AppleScript to send an email about a page in Safari
Good point. Removing the " worked, but this way is the intended use, I suspect, as it puts quotes around the selected text (and my misinformation of removing the third " adds the selected text to the body of the email, but without quotes). Obviously, I am a rookie :)
An AppleScript to send an email about a page in Safari
Yikes! Now I get an Applescript error: "Mail got an error: NSReceiverEvaluationScriptError: 4"
with "index" highlighted at "set index to 1" Any ideas what that's about?
An AppleScript to send an email about a page in Safari
I get that error if I Run the script from Script Editor. However, if run from the Scripts menu in the menu bar the error is not generated.
An AppleScript to send an email about a page in Safari
Yes, I was trying to run it from Script Editor. Fixed. But now I have the same problem; Mail.app comes to front, but no message.
An AppleScript to send an email about a page in Safari
I can't respond to the "Mail got an error: SReceiverEvaluationScriptError: 4" issue or the message not created problem, since the script works on my machine. For what it's worth, I use Script Editor 2.2, Applescript 2.0, and OS X 10.5.1. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|