AP.
AP.

Reputation: 5323

show desktop/hide all windows under Mac OS X

I am trying to create an application which show the desktop / hide all application even the finder.

Do you have any idea to achieve this?

Thanks and regards,

Upvotes: 1

Views: 1552

Answers (3)

Andrew Sheridan
Andrew Sheridan

Reputation: 19

You can easily achieve this by using applescript to set the current application to find then executing the [NSWorkspace hideOtherApplications].

Activate Application "Finder"

Pretty much all the additional code you need. Fairly simple.

Upvotes: 0

JeremyP
JeremyP

Reputation: 86691

It depends on what you are really trying to do. Have a look at the Apple docs on kiosk mode to see if they help.

Upvotes: 0

Nicholas Riley
Nicholas Riley

Reputation: 44361

When you hide the Finder, you don't hide the icons on the desktop. If you're fine with that, then use -[NSWorkspace hideOtherApplications].

Otherwise you'll need to draw your own window over the top of everything else.

Upvotes: 2

Related Questions