Mac OS X
Q: Building Applescript ObjectSpecifier With Name in Javascript
Is there a way to build an ObjectSpecifier using name instead of array number in Javascript Applescript?
search = ObjectSpecifier().buttons["Add"].value
items = items.groups.whose({_match:[search,"Selected"]})
The index for "add button" is different in each item, so if I build the ObjectSpecifier with buttons[3] Instead of buttons["Add"], it only returns the
items that have add button at the index 3. I also tried "ObjectSpecifier().buttons.byName("Add").value", but it doesn't work.
Thanks!!!
MacBook Pro, OS X Yosemite (10.10.5)
Posted on Aug 26, 2016 8:20 AM