On Fri, 19 Dec 2008 10:11:19 -0800, John Nairn <[email protected]> said:
>This does work as expected
>
> tell front document
> make new family at end
> tell last family
> set properties to {husband:"@I5@"}
> end tell
> end tell
>
>This creates the object but does NOT set the properties
>
> tell front document
> make new family at end with properties {husband:"@I5@"}
> end tell
>
I'm pretty sure this is covered in my book and in the online tutorial:
http://www.tidbits.com/matt/scriptability/scriptabilityTutorial.html
In any case "make new pair at end with properties" does work in the tutorial
example, so one approach might be to look at what I'm doing and see how we
differ. One guess, I think you may need to implement both
insertObject:inXXXArrayAtIndex:
and
insertInXXXArray:
But without seeing all of your code it's hard to guess what other important
pieces of the puzzle you may be omitting. :) m.
--
matt neuburg, phd = [email protected], <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]