Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a property by using a string



> The difference in time between getting a property value directly from
> a compiled script and getting some keyed value from a facility in an
> OSAX will mostly depend on the manner which the OSAX is managing the
> data.

I agree as well. The objective, if we talk about speed and portability,
would be using records or whatever thing not involving the use of scripting
additions.

Anyway, in order to reach the center of the discussion, when someone tries
to reference variables by name, we are usually talking about someone coming
from a different language. In the real AppleScript world, nobody will use
the "run script" trick, I think, except for very concrete issues, and
usually educational issues.

The convinced applescripter will just ignore this feature of other languages
and use what-we-have, not a very standard OOP -BTW-, but good enough to
automate certain tasks, etc.

Obviously, AS is not designed for speed. But you won't use AS anyway for
i-need-real-speed tasks. You won't be programming a powerful search engine
(or whatever) using AS... So, you must stick with what-is: lists, records...
Or tricky tricks. I think ;-)


jj

-- 
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Re: Calling a property by using a string (From: Philip Aker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.