I need a little guidance on how to take text from a TextEdit document and add it to an online field.
I need to be able to take the textName string (which is the first paragraph of an open text document) and add it to a field with ID of “Name”
Below is what I have so far. Any help would be appreciated.
=========
tell application "TextEdit"
activate
tell document 1
set textName to paragraph 1
end tell
end tell
tell application "Safari"
open location "http://www.webpageform.com"
delay 1
do JavaScript "document.getElementByID('Name').value = '" & textName & "'"
end tell