• 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
UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)


  • Subject: UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)
  • From: Henrik Boes <email@hidden>
  • Date: Wed, 31 Dec 2003 10:50:56 -0700

Thanks very much to Bill and Craig. Changing the syntax from application to process did the trick ...

tell application "TextEdit" to activate
tell application "System Events"
if UI elements enabled then
click menu item "New" of menu "File" of menu bar item "File" of menu
bar 1 of process "TextEdit"

... allowing me to write the following little script as a login application to enable Retrospect Client 5 (the software currently doesn't stay on between reboots):

tell application "Retrospect Client" to activate
delay 1
tell application "System Events"
click radio button "On" of radio group 1 of window 1 of process "Retrospect Client"
end tell
delay 5
tell application "Retrospect Client" to quit

It ain't much, I know, but to the likes of me, it's a satisfying use of technology ...

Thanks again for the help.

Henrik Boes
_______________________________________________
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: adding icon in Xcode AppleScript Studio
  • Next by Date: Re: getting the date, next question
  • Previous by thread: adding icon in Xcode AppleScript Studio
  • Next by thread: CPU factor
  • Index(es):
    • Date
    • Thread