![]() ![]() Click “OK” and the resulting icon image file will show up in the selected location. Try dragging an application directly onto it. Save the workflow to a file such as ~/Applications/SaveMaxIcon.app. usr/bin/sips -s format png -resampleHeightWidthMax $MAX "$1" -out "$OUTFILE"ĭone. ICONFILE="$APPDIR/Contents/Resources/$ICON.icns" ICON=`defaults read "$APPDIR/Contents/Info" CFBundleIconFile|sed -e 's/\.icns$//'` Drag the action into your workflow editor on the right, and paste the following code into it: You can use the filter at the top to quickly narrow down the choices. In your new Automator workflow, find “Run Shell Script” in the Library on the left. We’ll start with a really simple Automator application that you can drop an application onto to extract its icon at 512px and save it as a JPEG to the Desktop. To get started, open up Automator.app and create a new file with the “Application” preset. If you want to customize these workflows, you’ll need to know a little bit about the inner Bash workings, but nothing an up-and-coming nerd can’t figure out. You can download ready-to-go versions of the workflows covered in this post here: GrabIconWorkflows.zip. ![]() If you skipped straight here, it probably means you don’t really want to know about the messy details of the scripts, so this post won’t go into a lot of Unix mumbo jumbo. It’s time to put them to use and create an Automator app that we can use as a droplet in Finder. ![]() We’ve covered a small truckload of Bash scripting ideas for Mac and OS X in the previous two posts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |