• 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: gui scripting for IE5.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gui scripting for IE5.2


  • Subject: Re: gui scripting for IE5.2
  • From: julifos <email@hidden>
  • Date: Sat, 18 Jan 2003 11:36:14 +0100

> Hi
>
> I wonder if someone can give me a hand on syntax here.
>
> I'm trying to click on the Print button in the Print dialog in Internet
> Explorer.

Some times you must explore the UI elements before use it, because a button
can be enclosed into a group, into another group which is grouped into a...
Into a window. So, if you do a:

tell application "System Events"
tell process "Internet Explorer"
UI elements
end tell
end tell
--> I get three: two windows (print and a web page, and a menu bar)

... UI elements of window "Print"
--> static text = no interest, image = no interest...
--> where is button "Print"?
--> must be within UI element 4 or UI element 5
... UI elements of UI element 4 of window "Print"
--> no, these are number of copies and so on
... UI elements of UI element 5 of window "Print"
--> HERE!

tell application "System Events"
tell process "Internet Explorer"
set frontmost to true --> I need this!
click button "Print" of UI element 5 of window 1
end tell
end tell

While we wait for a robust app which will do our life better & easier (I'm
sure PreFab UI Browser will be), this is the best way...

JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.

  • Prev by Date: Re: Still cannot record anything in Script Editor
  • Next by Date: Re: Need Root Access to etc/rc
  • Previous by thread: Re: file size limit for read command (OS 9)??
  • Next by thread: Howto Display terminal return value??
  • Index(es):
    • Date
    • Thread