scripting Show and Hide desktop

I would like to script an F11 keystroke with the intention of showing and hiding the desktop.

I believe what I really need is a reference guide for all commands… I have tried:
keystroke F11
keystroke “F11”
with no success.

I apologize in advance for the simple question, but I find that it’s better to ask for help than beat my head on the keyboard!

I tried the search and was unable to find what I needed.

Thank you!

Browser: Firefox 3.0.8 (.NET CLR 3.5.30729)
Operating System: Mac OS X (10.5)

Full Key Codes 1.2 software download - Mac OS X - VersionTracker
Turn off the F11 shortcut.
Open Full Key Codes and press F11.

tell app "System Events" to key code 103

from - 10.3: Activate Exposé via an AppleScript
I searched in Google: applescript expose

Thank you very much! I’m a recent Windows convert and I’m still trying to get the few things I miss from Windows back. I greatly appreciate your assistance with this!

Now I just have to figure out how to make it a dockable icon and I’m golden :slight_smile:

(I’m happy to figure this out with google though)

Thanks again!