• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScripting with Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >AppleScripting with Safari (From: Peter Wait <email@hidden>)

  • Prev by Date: Re: Make New Window scripting problem
  • Next by Date: Re: Make New Window scripting problem
  • Previous by thread: AppleScripting with Safari
  • Next by thread: Problem with Script Editor Scripts
  • Index(es):
    • Date
    • Thread