• 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
Arguments expected by .setProperty() method on JSA collections ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arguments expected by .setProperty() method on JSA collections ?


  • Subject: Arguments expected by .setProperty() method on JSA collections ?
  • From: jif <email@hidden>
  • Date: Mon, 18 Jan 2016 19:30:35 +0000

We can batch-read arrays of property values from JavaScript for Automation object specifiers referring to a collection of objects, using objects.getProperty()

Object collection in JSA also have a .setProperty(), method but this seems to fail on collections, though it works on individual objects.

Does objs.setProperty() expect some particular argument types that haven't occurred to me.

(with single objects the pattern is .setProperty(propertyNameString, propertyValue), but this fails with collections)


At the moment this looks like a point of sharply asymmetrical functionality - batch setting of properties works in AppleScript, but is appearing to fail in JavaScript.

Any insights ?
 _______________________________________________
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


  • Prev by Date: Re: Handlers in a variable
  • Next by Date: Re: Handlers in a variable
  • Previous by thread: Re: [ASOC] returning by reference and converting script objects to descriptors?
  • Next by thread: Re: Arguments expected by .setProperty() method on JSA collections ?
  • Index(es):
    • Date
    • Thread