• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Apple Script Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Apple Script Problem


  • Subject: Re: Cocoa Apple Script Problem
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 25 Dec 2008 08:55:06 -0800
  • Thread-topic: Cocoa Apple Script Problem

On Fri, 19 Dec 2008 10:11:19 -0800, John Nairn <email@hidden> 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@hidden, <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@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: Messaging framework
  • Next by Date: Re: Modal Session not stopping main thread.
  • Previous by thread: Re: Cocoa Apple Script Problem
  • Next by thread: NSLog ??
  • Index(es):
    • Date
    • Thread