Re: AppleScripting with Safari
Re: AppleScripting with Safari
- Subject: Re: AppleScripting with Safari
- From: Axel Luttgens <email@hidden>
- Date: Thu, 29 Jan 2004 23:04:02 +0100
Peter Wait wrote:
My goal is to duplicate with AppleScript what I do manually. I call Safari,
enter the URL for my financial account, which brings up a logon page, I
enter my user ID and password, click on continue; then go through 2 more
pages and get to my table of transactions. I9d like to format these
transactions so I can import them into Quicken (which isn9t applescriptable)
This is as far as I get:
tell application "Safari"
set theURL to "https://www.financialaccount.com/"
open location theURL
repeat until the name of document 1 = "Login Page"
end repeat
get class of document 1
get properties of document 1
end tell
The class of document 1 is 3Document2 and its properties consist of about 50
lines, several saying 3java script2. I suppose it9s what tells Safari how to
format the page. I9m stuck at how do I enter my UserID and password in
applescript, so I can continue. I see the field names in the text of the
document9s properties, but I don9t know how to use them.
Your description is very concise, isn't it?
So, just two guesses.
Perhps could you ask Safari to memorize the entries into the two fields,
by doing this manually first (check the application's preferences for
auto-fill); this shouldn't be of great security concern, as that info
would go into your keychains.
Otherwise, if you know JavaScript, the "do javascript" command targeted
at Safari could do the trick.
Yes, I know, concise too...
HTH,
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.