Re: AppleScript and Obj-C in the same project? (clarification)
Re: AppleScript and Obj-C in the same project? (clarification)
- Subject: Re: AppleScript and Obj-C in the same project? (clarification)
- From: "Carlos A. Weber" <email@hidden>
- Date: Sat, 13 Jul 2002 23:32:15 -1000
On Saturday, Jul 13, 2002, at 17:13 Pacific/Honolulu, Philip George wrote:
>
>
I apologize for not being very clear on this. I realize that a Cocoa app can be "scriptable" and thus has AppleScript-related doodads and whatnots inside the project to make that magic happen. That's not what I'm interested in. What I want to know is...
>
>
If I already have a Cocoa project, how can I LAUNCH an AppleScript command straight from the code?
>
>
I do not want to have a separate compiled script sitting in the file system and launch it using NSWorkspace. That's too cludgy.
>
>
I want the AppleScript code to be in the PB project and somehow use the Cocoa code in that project to tell the AppleScript code to run.
>
>
This way, the end user has no idea that their Cocoa app did anything with AppleScript at all.
>
>
Seamless.
>
>
Thanks.
>
>
- Philip
>
>
>
>
On Saturday, July 13, 2002, at 09:34 PM, Philip George wrote:
>
>
>
>
> Can you have AppleScript and Objective-C in the same PB project and have them actually coexist?
>
>
>
> If so, can they send talk to each other somehow, even if it's something like a notification or something?
>
>
>
> - Philip
You have several options:
1. Read up on AppleScript Studio. It's rolled into the latest versions of PB and IB, and it might be able to do what you want.
2. Check out Nathan Day's wrapper classes for AppleScript, at
http://homepage.mac.com/nathan_day/pages/source.html.
3. Wait for Jaguar, which has new API to manipulate AppleScripts.
_______________________________________________
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.