• 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: Why so few OSX Additions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why so few OSX Additions?


  • Subject: Re: Why so few OSX Additions?
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Tue, 24 Jun 2003 12:38:47 +1000

Don't get me wrong, I occasionally use terminal -- but it would be a mother
of a job to rewrite the hundreds of AppleScripts.

Just keep the machine running OS 9. Fight with your back to the keyboard rather than let anyone touch that computer. Of course, it might be time to consider amalgamating the code from your hundreds of scripts into a library of common code. This will make the code base easier to maintain.

In many cases the real "speed" gain of osax is not the milliseconds that the osax call shaves off the job but the fact that you don't have to sit down and write the code to get the same result in applescript.

Jon Pugh showed us a technique for dealing with unpredictable environments. Using this method you call your own handler rather than calling the osax directly. That way you get the result you want no matter what. It does mean that you have to write the applescript equivalent of the osax call.

on coolTool(listData)
-- in psuedocode
-- use osax if present
-- but don't rely on them
try
-- call osax
on error
-- fast osax is missing
-- do it the hard way
end try
end coolTool

--
--
Malcolm Fitzgerald email@hidden
Database Manager http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.

References: 
 >Re: Why so few OSX Additions? (From: Xandra Lee <email@hidden>)

  • Prev by Date: "enterkey" keystroke and some more basic questions
  • Next by Date: Re: The Name Game
  • Previous by thread: Re: Why so few OSX Additions?
  • Next by thread: Re: Why so few OSX Additions?
  • Index(es):
    • Date
    • Thread