Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'An AppleScript to send an email about a page in Safari' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
An AppleScript to send an email about a page in Safari
Authored by: brucio on Wed, Feb 6 2008 at 8:41AM PST
Compiler shows me an error at:
set content to (""" & SelectedText & """ & return & return & "More at " & PageURL)
Syntax error: Expected ", " but found ".

[ Reply to This | # ]
An AppleScript to send an email about a page in Safari
Authored by: clarkj29 on Wed, Feb 6 2008 at 9:11AM PST
compiler found same error:
set content to (""" & SelectedText & """ & return & return & "More at " & PageURL)

[ Reply to This | # ]
An AppleScript to send an email about a page in Safari
Authored by: vwgtiturbo on Wed, Feb 6 2008 at 9:31AM PST
Sorry for the double-post, but I just realized that I posted incorrectly...

If you look at the area that the script editor highlights, you will see """. Erase one of those marks. Then you will see another area on the same line with the same """. Erase one of those marks. So, change this:

set content to (""" & SelectedText & """ & return & return & "More at " & PageURL)

to:

set content to ("" & SelectedText & "" & return & return & "More at " & PageURL)

You can then save the script as outlined above, and it works.


[ Reply to This | # ]
An AppleScript to send an email about a page in Safari
Authored by: egoham on Wed, Feb 6 2008 at 10:11AM PST
I see no difference in your replies.

Figured the extra " needed removed, both instances.

Yes it complies at this point.

However, I still have a problem.

Mail comes to the front, but a new message is not created. I even looked to see if the message was hidden behind the main window.

Any help appreciated.

Using Mac OS X 10.4.11, Mail Version 2.1.2 (753), and Version 3.0.4 (523.12.2) on a Dual 2.7 GHz PPC G5

[ Reply to This | # ]