If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Thanks for that, but that wasn't quite what I was looking for. I want to make an AppleScript that will email the contents from a website that I specify. Do you know of a way to do that? Sorry if this sounds confusing to you.
property timeout_value : 60
tell application "Safari"
make new document at the beginning of documents
set the URL of the front document to "http://www.macnn.com"
delay 2
if my page_loaded(timeout_value) then
email contents of document 1
end if
end tell
on page_loaded(timeout_value)
repeat with i from 1 to the timeout_value
tell application "Safari"
if (do JavaScript "document.readyState" in document 1) is "complete" then
return true
else if i is the timeout_value then
return false
else
delay 1
end if
end tell
end repeat
return false
end page_loaded
Where would I put an email address for the contents of the site to be sent to?
Someone else needs to answer this, because I don't know. The apparent way of getting hold of the newly created e-mail via AppleScript doesn't work for me.