Completely hiding an application

ballsmag

Registered
What I'd like to do is have QuickTime Broadcaster automatically open and be controlled via Applescript and/or broadcasterctl, without having to deal with any windows being visible.

My first thought was taking advantage of Fast User Switching, but a) I cannot get multiple users to automatically login at boot-time (one in the background) and b) I cannot open applications for a user other than the one currently in the "foreground" as it were.

So what I'm wondering is: Is there a better way than Applescripting the launch and subsequent hiding (ie apple-h) of QT Broadcaster?
 
You can hide a process through AppleScript, if that's what you're looking for.
Code:
tell application "Finder"
	set the visible of application process "QuickTime Broadcaster" to false
end tell
You can also accomplish the same result by using "System Events" instead of the Finder, if you don't want to have to keep the Finder loaded when the script runs. Same syntax, same effect:
Code:
tell application "System Events"
	set the visible of application process "QuickTime Broadcaster" to false
end tell
System Events is the invisible process that manages Folder Actions and provides some very, very useful AppleScript commands. It's not loaded until it's needed, and once loaded it'll stay loaded until you log out.

Hope this helps.
 
Back
Top