[TRTFM] Cocoa and AppleScript
[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.