• 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
AppleScript Cocoa things that don't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript Cocoa things that don't work


  • Subject: AppleScript Cocoa things that don't work
  • From: Ron Davis <email@hidden>
  • Date: Thu, 23 May 2002 15:13:12 -0500

I've found two problems trying to make a scriptable app and I hope there is
a way around them

1) If I define a ToOneRelationships to an object it shows up in the
dictionary as being accessible "by name, by numeric index, before/after
another element, as a range of elements, satisfying a test". And you have to
access it as item 1 from the script.

2) I have a ToManyRelationship and want to write a script that does
something like this:

get the name of every myItem of the current application

This returns an error. If I ask for a count of the myItem's in the app I
get it back and can then walk the list with a repeat look getting each one.
Seem "of every" should be just doing the same.

Are there solutions to these problems?

--
Ron Davis email@hidden
"I want to know God's thoughts...the rest are details." -- Albert Einstein
__________________________________________________________________________
"The difference between fiction and reality is that fiction has to make
sense." - Tom Clancy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AppleScript Cocoa things that don't work
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Project Builder madness!?! Help!
  • Next by Date: Re: Flame retardant
  • Previous by thread: Re: Project Builder madness!?! Help!
  • Next by thread: Re: AppleScript Cocoa things that don't work
  • Index(es):
    • Date
    • Thread