hello all,
I am wondering if there is a way to show the Dashboard (and then hide it later) via Applescript or the command line . . .
I have tried . . .
tell application "dashboard"
activate
end tell
and
tell application "dashboard"
set visible to true
end tell
Both of these commands DO show the dashboard, but they also create an error (Application not running).
Any suggestions would are welcome
Model: 20" iMac G5, 1gig Ram
Browser: Safari 412
Operating System: Mac OS X (10.4)
To prevent the upcomming error while activating you could use this:
try
tell application "Dashboard"
activate
end tell
end try
But I’ve no idea how to hide it later
(Telling “System Events” to set visible of process “dashboard” to false causes an error)
I found that gui scripting is, atleast until I find out how to activate it via the terminal or applescript, the way to go.
tell application "system events"
key code 111
end tell
The only problem with this method is that it is reliant on the hotkey for Dashboard being F12. I know that for some, using another hotkey is better because the F12 is the eject key in many notebooks. My wife’s iBook has her hotkey set at F8.
I’ll bet that there is a way to show/hide the dashboard via the terminal or some other Applescript which has yet to surface.
Thanks
Model: 20" iMac G5, 1gig Ram
Browser: Safari 412
Operating System: Mac OS X (10.4)