• 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 and Obj-C in the same project? (clarification)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: AppleScript and Obj-C in the same project? (clarification)
      • From: Joseph Egon Mastandrea (Spiros) <email@hidden>
  • Prev by Date: Re: Getting the contenst of a mount point with a NSFileWrapper
  • Next by Date: Re: Sheet modal for NSTabViewItem
  • Previous by thread: [ANN] Cocoa Classes for Accessing PostgreSQL Databases
  • Next by thread: Re: AppleScript and Obj-C in the same project? (clarification)
  • Index(es):
    • Date
    • Thread