Re: Why so few OSX Additions?
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.