Watch a large number of icons with Preview.app
Browsing .icns files in Preview.app can be painful. If you try to open all the icons of the CoreTypes bundle for example with the following command
open /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/*icns
you will get this view:
All the different sizes of the .icns are displayed, which makes it quite unpleasant to browse.
F-Script Anywhere to the rescue!
Install F-Script Anywhere into Preview, then do
- FSA → New F-Script Workspace
- Click the Browser For Target… button
- Click on one of the icons
- Choose the PVIKImageBrowserView object
- In the F-Script Object Browser, name the PVIKImageBrowserView browserView
Finally, in the F-Script interpreter, paste the following code:
groups := browserView layoutManager groups.
count := groups count.
0 to:count-1 do: [:i | browserView collapseGroup:(groups objectAtIndex:i)]
Tada, a nice browsable view of your icons!
1 comment:
Excellent! Thank you very much for posting this.
Post a Comment