Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever 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 Feb 06, '08 08:41:42AM
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 Feb 06, '08 09:11:05AM

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 Feb 06, '08 09:31:02AM

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 Feb 06, '08 10:11:15AM

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 | # ]