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

Re: applescripting the calculator


  • Subject: Re: applescripting the calculator
  • From: Bill Briggs <email@hidden>
  • Date: Thu, 25 Jan 2007 21:07:48 -0400

At 2:19 PM -0500 1/24/07, Gordon Beckhart wrote:
>Been tring to teach my self applescript and this bit with the calculator has me frustrated.

 I have two questions.

1.) Why are you using the calculator as a means to learn AppleScript?  You couldn't have picked a worse application (well, not much worse). As others have said, GUI scripting is an ugly last resort to doing things when proper AppleScript isn't possible. Any time you have to resort to GUI scripting you have to re-evaluate what you're doing. There may be a better way, and if there is, you want to find it. Maybe shell scripting will work better. But GUI scripting is something you do in desperation - not as a means to learn AppleScript. There are so many more happy ways to learn it.

2.) Why would you want to use scripting of the calculator to do calculations when you can do the calculations directly in AppleScript?  Even if you have more sophisticated calculations than Plain Vanilla AppleScript can handle, there is the Satimage OSAX or Deivy Petrescu's Mathematica suite that can get you there. And allow you to preserve your sanity.

 Here's some advice. If you are trying to learn AppleScript, don't try to learn it scripting an application that requires you to do GUI scripting. You'll hurt your brain. Possibly irreparably damage part of your frontal lobe. Download and use an application that has real AppleScript support. I'd highly recommend Tex-Edit Plus as a good place to start. The Finder is also good (though less good than it was in OS 9). But you need to stop abusing yourself and forget about learning AppleScript with the calculator. It's just got bad joss in the AppleScript universe. Rumour has it that it can even cause impotence. Don't touch it.

- web
 _______________________________________________
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

References: 
 >applescripting the calculator (From: Gordon Beckhart <email@hidden>)

  • Prev by Date: Re: applescripting the calculator
  • Next by Date: Re: More FMP8 Questions
  • Previous by thread: Re: applescripting the calculator
  • Next by thread: Re: applescripting the calculator
  • Index(es):
    • Date
    • Thread