• 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: 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


  • Subject: Re: Batch update of properties of an object
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 28 Jul 2011 10:03:01 +0200

Le 28 juil. 2011 à 07:19, Leonid Bogdanov a écrit :

> 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?

Hello

I used the first one many times.
It seems that some apps dislike it.

I never used the second one.

I have no idea about performances.

Yvan KOENIG (VALLAURIS, France) jeudi 28 juillet 2011 10:02:56



 _______________________________________________
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>)

  • Prev by Date: Re: Broken script
  • Next by Date: Re: Batch update of properties of an object
  • Previous by thread: Batch update of properties of an object
  • Next by thread: Re: Batch update of properties of an object
  • Index(es):
    • Date
    • Thread