Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
- Subject: Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
- From: Michael Terry <email@hidden>
- Date: Fri, 9 Apr 2004 23:51:06 -0700
On Apr 9, 2004, at 11:19 PM, Walter Ian Kaye wrote:
tell app "OmniOutliner" to tell front document
set value of cells 2 thru 3 of every row to {{"hello", 1}, {"what",
2}, ...}
end
or find a nice alternative.
The alternative would be to do like is often done with Excel:
1. get the boundaries of the range you want to affect
2. build a range reference based on those boundaries
3. assign an array to that range
Omni's going to be releasing a new version of Outliner soon, and
they've made public that they're spending considerable effort on the
script support; there may never be a better chance to influence its
direction in a positive way. I'd like to be able to suggest some
things that will make scripting OO a pleasure a few months from now.
Suggest the above alternative, assuming it's not already in there.
Thanks, that's a good idea. I've never scripted Excel, but of course
when you're scripting spreadsheets and similar, Excel's model is the
first one you think of; I just wasn't sure it's a good model. But
AppleScript does have the table suite, doesn't it? I think that might
fit in pretty well with OO.
I'd still like to know if the code at the top there is cool or daft. It
seems AppleScripty to me, and keeps the number of entities required to
explain solutions to a minimum.
Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.