• 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
applescripting the calculator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescripting the calculator


  • Subject: applescripting the calculator
  • From: Gordon Beckhart <email@hidden>
  • Date: Wed, 24 Jan 2007 14:19:50 -0500

dear friends
Been tring to teach my self applescript and this bit with the calculator has me frustrated.
The command "exists" seems to work and returns me a "true".  Trying to click, press the number buttons just returns an error message.

this is the applescript, can anyone suggest how to make it function?
thanks
Gordon Beckhart
tell application "Calculator"


tell application "System Events"


tell application process "calculator"
tell window "calculator"
exists button "9" of group 1
--exists button "Clear" of group 1
--click button "9" of group 1
--press button "plus" of group 1
--press button "5" of group 1 
--press button "equals" of group 1
end tell
end tell
end tell
end tell

s



 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: applescripting the calculator
      • From: "John C. Welch" <email@hidden>
    • Re: applescripting the calculator
      • From: Bill Briggs <email@hidden>
    • Re: applescripting the calculator
      • From: Adam Bell <email@hidden>
    • Re: applescripting the calculator
      • From: "J. Stewart" <email@hidden>
  • Prev by Date: More FMP8 Questions
  • Next by Date: Re: applescripting the calculator
  • Previous by thread: Re: More FMP8 Questions
  • Next by thread: Re: applescripting the calculator
  • Index(es):
    • Date
    • Thread