• 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
Newbie call method help needed please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie call method help needed please


  • Subject: Newbie call method help needed please
  • From: Peter Woodward <email@hidden>
  • Date: Wed, 19 Mar 2003 23:11:39 +0000

Help!
I am trying to call cocoa classes from an applescript studio application
using the call method
I have tinkered with many different efforts at the code but am wearing my
finger out cancelling applescript errors
It has to be said, I am a complete novice concerning cocoa and applescript
(programming in general) so forgive me if the following code looks a
little....... Basic
I have studied all the examples and documentation that apple provides that
use the call method but they don9t seem too clear on the following points:

I just want to set my text view to display the text output of a cocoa class.
I don9t understand how to display 3myclass2 as unicode text. Project builder
assumes that 3myclass2 is an undefined variable
This is where I9m at right now:
on clicked theObject

tell window "main"

set contents of text view 1 to call method "currentUIElement" of
class myclass
end tell
end clicked


Somebody help me please, I9m not sure I can take much more of this!
Many thanks



Peter Woodward
Reply to: <email@hidden>

web: <http://www.miportfolio.com>
_______________________________________________
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.

  • Prev by Date: Re: the Holy Grail of AppleScript lists
  • Next by Date: Re: the Holy Grail of AppleScript lists
  • Previous by thread: Re: RE: Why are compiled scripts slower than from Script Editor?
  • Next by thread: Scripting Quark on B&W G3 hard disk problems
  • Index(es):
    • Date
    • Thread