• 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: Applescript questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript questions


  • Subject: Re: Applescript questions
  • From: Don Briggs <email@hidden>
  • Date: Fri, 19 Mar 2004 08:43:44 -0800

Hi, Casey 

I used Suite Modeler to check your suite.
Suite Modeler complains that in your test_app calss,
your choice of external name and apple event code
conflict with NSCoreSuite's declaration of NSApplication.

Suite Modeler has a free demo mode that performs this kind of diagnosis.
It's on my .Mac homepage.
http://homepage.mac.com/donbriggs

The same page has some examples of scriptable Cocoa apps.

In licensed mode, Suite Modeler saves your suite as {*.scriptSuite, *.scriptTerminology}
and emits "rapid prototype code" -- a great way to start a project, especially for a Cocoa newbie.

All best,
Don

On Mar 19, 2004, at 8:00 AM, Casey Fleser wrote:

OK, I'm playing around with AppleScript support and I'd like to attempt to make a single object with a single attribute available to AppleScript from my application object. I'm using standard key value coding to access these objects. But when I run my little script:

tell application "scriptTest"
set testval of object to 333
end tell

AppleScript responds with: Can't set +class valT; of +class objT; to 333.

Everything looks ok in the dictionary, in the diagnostics, etc, etc. Since there are several elements to this problem I put together a little project with all of the relevant bits here: http://www.pr3d4t0r.com/misc/snippets.html

Giving the amount of time I've been scratching my head over this, I'm sure it'll end up being something absurdly obvious.

TIA,

Casey
_______________________________________________
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.
_______________________________________________
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.


References: 
 >Applescript questions (From: Casey Fleser <email@hidden>)

  • Prev by Date: Applescript questions
  • Next by Date: Re: memory management question
  • Previous by thread: Applescript questions
  • Next by thread: Caching NSBezierPath drawings
  • Index(es):
    • Date
    • Thread