Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Quickly free memory used by Dashboard widgets' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Quickly free memory used by Dashboard widgets
Authored by: FG on Jul 22, '07 11:37:46PM

I've written a quick and dirty applescript to do that:

try
tell application "System Events" to key code 111 --F12
end try

delay 1

try
tell application "System Events" to key code 111
end try

Basically, this script presses twice the key F12 with one second delay: it needs, obviously, that you haven't changed the shortcut to Dashboard, and that you have enabled access for assistive devices (in the Universal Access Preference Pane). Paste it in Script Editor, save it as an application and add this application to your login item, and voilĂ ! Surely there must be a much clever and gracious way to accomplish that, but I'm a basic applescript user…



[ Reply to This | # ]