Re: Script Objects
Re: Script Objects
- Subject: Re: Script Objects
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 19 Jan 2010 19:40:42 +0100
Le 19 janv. 2010 à 19:25, Stockly, Ed a écrit :
I'd certainly be interested in knowing what other people consider
to be bigger
issues.
For me almost anything would be a bigger issue.
I don't like Script Objects because they're a pain to debug.
The only reason I use them (and I don't use them that much) is that
in some
cases they dramatically reduce the execution time for specific tasks.
I toyed with them in Script Debugger but found that even then they
were more
trouble than they were worth.
I used them in Classic because of the built-in limits on the size of
scripts, but that's no longer an issue. My scripting life is much
simpler
now as a result. My solution for reusable code is to reuse
handlers and
make long scripts and those run just fine.
I'm also interested in what other AppleScripters think about them.
I don't know if my opinion is important.
i don't use script objects because quite all my scripts are responces
to questions asked in iWork's Apple Discussions Forum.
Askers are often reluctant to use scripts so, offering them a soluce
using these more complex beast would be rejected.
My own practice is to build a huge fake scripts containing a lot of
handlers.
When I build a new script, I copy / paste handlers from the huge
thing which behaves as a kind of library.
So, I have the advantages of modular script without the discripencies
of Script Objects.
But, I repeat, it's just a specific use of AppleScript.
Yvan KOENIG (VALLAURIS, France) mardi 19 janvier 2010 19:40:37
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden