Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classic spawning Cocoa process??



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.