jerrykrinock Posted October 31, 2013 Share Posted October 31, 2013 When I launch my app BookMacster with Alfred, its menu does not show until I activate a different application, then activate BookMacster, for example with the ⌘-tab application switcher. According to users, this behavior started with Mavericks. BookMacster has a preference option to launch in the background. This is implemented by entering LSUIElement into Info.plist, and using TransformProcessType() after launching. Due to a longstanding bug in Mac OS X, this needs to be done in a different place in 10.9 vs. earlier OS X versions. All of the technical details are here. Nonetheless, it works, in 10.9, for every launch method I can find, with the exception of Alfred. PASS Doubleclick in FinderPASS Put in Dock and click PASS AppleScript "Launch Application”PASS Launch using the open(1) command in Terminal.appPASS Launch using -[NSWorkspace launchApplicationAtURL:options:configuration:error:]PASS Launch using the -[NSWorkspace launchApplication:]PASS Launch using the LaunchBar app launcherFAIL Launch using the Alfred app launcher Maybe we need to work together on this offline. I was thinking maybe BookMacster could detect when it was launched by Alfred and do TransformProcessType() the old way, but the parent process of apps launched by Alfred seems to be launchd, like apps launched by Finder, so I don't know how to determine when I'm launched by Alfred. Thanks, Jerry Krinock Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now