Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Batch update of properties of an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Batch update of properties of an object



Hello.

I second Yvan. AppleScript makers recommended that scriptable applications programmers implement behavior 1). Some apps do it, some don't.

If you're concerned with performances, you would usually get a tremendous gain, since the overhead of making your script line into the C program is -usually - many more instructions than performing the actual "set" job.

Emmanuel
Satimage-software

On Jul 28, 2011, at 7:19 AM, Leonid Bogdanov wrote:

Hello!

Is there a way to set values for several properties of an object at one time?
I came with two approaches, but not sure they're correct:


 1) set properties of x to {foo: y, bar: z}
 2) set {foo of x, bar of x} to {y, z}

And will I have any performance gain if I use one of these approaches, comparing to several set statements?

Thank you!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Batch update of properties of an object (From: Leonid Bogdanov <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.