• 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
[TRTFM] Cocoa and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRTFM] Cocoa and AppleScript


  • Subject: [TRTFM] Cocoa and AppleScript
  • From: Jeremy Dronfield <email@hidden>
  • Date: Tue, 13 Aug 2002 11:55:54 +0100

I'd like to include an AppleScript in my Cocoa app, but can't make head or tail of the numerous NSScriptXXX classes in Foundation. Also, I'm confused by the AS component in Interface Builder. Is it only meant to be used for building AS applications? I managed to get it to attach a script to a button's action, but at runtime I got an ASKNibInfoManager error: "class not loaded". Would it be better to simply call the script from within the button's action method in PB? If so, how?

The purpose of the script is (or will be) to find the user's default email application (if that's possible), launch it, begin a new message and put some strings in the subject field and the text field.

If there's a way to do all this that bypasses AppleScript altogether, I'd love to hear about it. I mean, I can launch Mail with NSWorkspace, but that's not really enough. BTW, I don't have Jaguar, hence no NSAppleScript.

Hoping somebody can help.
-Jeremy

=======================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
_______________________________________________
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: [TRTFM] Cocoa and AppleScript
      • From: Diggory Laycock <email@hidden>
  • Prev by Date: Re: Documents which aren't NSDocuments
  • Next by Date: Re: [newbie]: UI questions (using NSSlider & NSTextField with delegation)
  • Previous by thread: Re: Documents which aren't NSDocuments
  • Next by thread: Re: [TRTFM] Cocoa and AppleScript
  • Index(es):
    • Date
    • Thread