I wrote a sub-routine to do this, but I need to deal with 10s, 100s, or even 1000s of lists of lists at once and the sub-routine, which consists of a repeat loop, is simply too slow. I figured it was a simple operation so there must be a way to do it faster with a single command.
Thanks jdmac and Shane, I did not recognize this until it was pointed out… but because of you two, I came up with my own solution using the “Satimage.osax” addition I already have installed:
set myArray to {{339, 17, 47}, {67, 17, 89}, {320, 15, 85}, {297, 18, 69}} as array of real
return extractarray myArray for -1 step 3 as list of integer
FWIW? Never heard that one before. “for who I’m with?” (a guess).
OmmfG! “ASObjC Runner”??? How long has this been out? and why am I just hearing about it now? (both rhetorical). Thank you, thank you, Shane! I see you are doing a lot. even wrote a book. haven’t played around too much with “ASObjC Explorer” yet because I’m still incorporating the runner’s additions into my scripts, making a lot of my old routines obsolete. Every command comes with a host of parameters, many of them interacting with each other. and with 2 interacting parameters giving much more power than the sum of each parameter’s individual power! Many of these commands blow the old saying “the whole is better than the sum of the parts” out of the water as this little motto is repeated over and over in many commands, esp. “modify list”, each doubling what you can do!
Parameter interaction is not the only commnd-buff, adding (exponentially) to power. An example is the “modify string” command’s parameter “so it is” has a huge number of enumerated values, most being powerful enough to comprise their own command (niiice!) ;). Another example is your simply adding a “false” to the beginning of a list as it is injected into your command machine and, boom! parameter negation!. wow, anyone? I’ve always wondered why the command “list files” (“Satimage.osax” again), in which the very useful parameter “not conforming to” could not be negated. Ran into this over and over and always had to find a longer, more complicated, slower way to do this.
(I don’t want to bore you guys, but I’m pretty excited at the moment.)
To top it off, it’s not up on Apple’s “AppStore”!!! (like everything else these days) Completely free?! How often is that seen lately? The temptation to make a buck for all the hard work that goes into a piece of software is generally irresistable to the majority of programmers. (of course, for a book, you’d expect that). That’s really nice to see.
btw, is there any way to change the background color in “ASObjC Explorer”? I don’t use “Smile” or “AppleScript Editor” because of this (major, imo) omission… if this option has been also neglected in the explorer, can I make a request that the option to change the background color be added in the next update? If/When this gets added (should be easy enough), inform me about it and I’ll send you a donation.
Once again, thank you Shane!
” Aesthir