Arguments expected by .setProperty() method on JSA collections ?
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