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


Click here to return to the 'Create a Finder window update button' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a Finder window update button
Authored by: mfripp on Apr 15, '07 04:16:59PM
You can get quite a nice icon by copying the refresh button from Safari.

Option 1: Navigate to the file at /Applications/Safari.app/Contents/Resources/Reload.tif, double-click, then in Preview choose Edit->Copy (unfortunately, this doesn't seem to handle transparency well).

Option 2: Open Safari, then use Command-Shift-4 to get a selection crosshair. Then hold down ctrl while drawing a box around the refresh button. This will place a copy of the button on the clipboard. The anti-aliasing will be just right because Finder uses the same brushed metal background as Safari. The best way to get the button exactly is to line up your crosshairs with the top and left gray lines around the refresh button, click, then drag down to one pixel beyond the bottom and right gray lines around the button.

Then paste the clipboard into the Get Info... window of your AppleScript.

Finally, drag the AppleScript to the Finder toolbar, and it will look great. I've found that if I save the AppleScript as an "application bundle" it runs faster than if I save it as an application. In theory it should also be possible to use LSBackgroundOnly in the info.plist of the bundle to keep an icon from appearing in the Dock, but I haven't gotten that to work ( http://forums.macrumors.com/archive/index.php/t-94451.html ).

[ Reply to This | # ]