• 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: Advice on controlling web pages (JavaScript) from Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice on controlling web pages (JavaScript) from Applescript


  • Subject: Re: Advice on controlling web pages (JavaScript) from Applescript
  • From: Steve Thompson <email@hidden>
  • Date: Tue, 04 Jan 2011 22:06:02 +0000


On 4 Jan 2011, at 19:15, gifford calenda wrote:

tell application "System Events"
tell application process "Safari"
tell application "System Events"
keystroke tab
delay 0.5
keystroke tab
delay 0.5
keystroke "username"
delay 0.5
keystroke tab
delay 0.5
keystroke "password"
delay 0.5
keystroke return
delay 4
open location "http://www.clicknkids.com/SWF/ClickNREAD/LessonCenterSchoolCNR.php"
end tell
end tell
end tell


Can be done a lot nicer like this:


tell application "Safari"
make new document at end of documents
set URL of document 1 to "http://www.clicknkids.com/Tasks/switchboard.php?username=username&password=password"
delay 4
open location "http://www.clicknkids.com/SWF/ClickNREAD/LessonCenterSchoolCNR.php"
end tell

Steve
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Advice on controlling web pages (JavaScript) from Applescript (From: gifford calenda <email@hidden>)

  • Prev by Date: Re: Using a library to point to source folders
  • Next by Date: Re: How to do a goto with Applescript?
  • Previous by thread: Advice on controlling web pages (JavaScript) from Applescript
  • Next by thread: Find dups in list
  • Index(es):
    • Date
    • Thread