Scripting bridge: offer a way of sending a message to a range of objects
| Originator: | amorya | ||
| Number: | rdar://19396963 | Date Originated: | 07-Jan-2015 10:33 AM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | Mac OS X 10.10.1 (14B25) |
| Classification: | Enhancement | Reproducible: | Always |
I wanted to send the following AppleScript to OmniFocus: set value of attribute named "link" of style of characters 1 thru 9 of note of myTask to urlString The problem was that I could not work out how to send things to a range of items inside a collection, without sending separate Apple Events for each character. This could be solved with a makeObjectsInRange:performSelector: method on SBElementArray. The underlying problem is that I should be able to send, in one single Apple Event, any getter/setter that AppleScript could manage to send in one Apple Event.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!