• 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: Joseph Egon Mastandrea (Spiros) <email@hidden>
  • Date: Sun, 14 Jul 2002 06:11:37 -0400

There is also using the system() call along with osascript...

check out the manpage for system() and osascript.

On Sunday, July 14, 2002, at 05:32 AM, Carlos A. Weber wrote:

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.




.................................................................
Joseph Spiros
Affiliated Organizations/Companies:
The ChronoSurf Media Group (President and CEO)
iThink Software (President and CEO}
The iThink Group (Founder and Team Coordinator)
CocoaDev.com (Contributor)
WWW: http://josephspiros.com/
Home: http://josephspiros.dyndns.org/
E-Mail: email@hidden (email@hidden)

"It takes a genius to whine appealingly" - F. Scott Fitzgerald
_______________________________________________
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.

References: 
 >Re: AppleScript and Obj-C in the same project? (clarification) (From: "Carlos A. Weber" <email@hidden>)

  • Prev by Date: Creating objects in C-JAVA
  • Next by Date: Re: make a step-by-step wizard
  • Previous by thread: Re: AppleScript and Obj-C in the same project? (clarification)
  • Next by thread: fire MouseDown event
  • Index(es):
    • Date
    • Thread