Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: kLSLaunchAndHide has no effect for the apps I'm starting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kLSLaunchAndHide has no effect for the apps I'm starting




On 2007-05-22, at 11:54, Michael Dautermann wrote:

On May 22, 2007, at 2:42 AM, Markus Hanauska wrote:

E.g. why does this code not start Mail in a hidden state?

	LSLaunchFSRefSpec spec = {
		&fileRef,
		0,
		NULL,
		NULL,
		kLSLaunchAndHide,
		NULL
	};

	err = LSOpenFromRefSpec(
		&spec,
		NULL
	);

Just out of curiosity, does kLSLaunchAndHideOthers (the opposite functionality) flag in LSLaunchFSRefSpec work for you? I.E. if you launch Mail with kLSLaunchAndHideOthers, does everything else but Mail hide?

Yes, in deed, that works. Mail comes up, all other apps go into hidden state.


I only have the problem with real apps, like Mail, iCal or Firefox. I start plenty of AppleScripts that way, which I save to App Bundles (because I want them to be run-able like apps and saving them to AppleScript apps means they run in Rosetta on Intel) and these are in hidden state when started that way.

--
Best Regards,
    Markus Hanauska


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >kLSLaunchAndHide has no effect for the apps I'm starting (From: Markus Hanauska <email@hidden>)
 >Re: kLSLaunchAndHide has no effect for the apps I'm starting (From: Michael Dautermann <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.