• 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: Classic spawning Cocoa process??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classic spawning Cocoa process??


  • Subject: Re: Classic spawning Cocoa process??
  • From: Eric Schlegel <email@hidden>
  • Date: Wed, 28 Nov 2001 12:17:52 -0800

On Wednesday, November 28, 2001, at 11:19 AM, Ron Pagani / San Francisco / San Jose, CA wrote:

Please forgive my ignorance of the OS X architecture;

Is it possible for a Classic app to fire a Cocoa process?
I would like to make a Carbon app that could be placed in Shutdown items, which would fire a shutdown system call in OS X, theoretically shutting down the system when Classic is shutdown.

Crazy talk? Simpler way?


Try putting an AppleScript in your shutdown folder that does this:

ignoring application responses
tell application "Finder"
shut down
end tell
end ignoring

I tested this running as a native X script; I haven't tried it as a Classic script.

-eric


References: 
 >Classic spawning Cocoa process?? (From: "Ron Pagani / San Francisco / San Jose, CA" <email@hidden>)

  • Prev by Date: Classic spawning Cocoa process??
  • Next by Date: reordering of subviews ?
  • Previous by thread: Classic spawning Cocoa process??
  • Next by thread: reordering of subviews ?
  • Index(es):
    • Date
    • Thread