Installing Widgets with Automator

| Tips

Todayis Quick Tip is a two-for-one bonus. First, weill enhance Safariis security by disabling one of its features for automatically opening files, and then weill build an Automator workflow that installs Dashboard widgets for you.

One of Safariis features can automatically uncompress and open files and applications you download from the Internet. Unfortunately, that feature could potentially be abused by someone that wants to install an application on your Mac without your knowledge, so itis best to turn it off. Hereis how:

    - Launch Safari.
    - Choose Safari > Preferences from the menu bar.
    - Click the General button.
    - Uncheck Open "safe" files after downloading.


Disabling "Open Safe Files" prevents applications from installing without your knowledge.

The downside is that now any widgets you download wonit automatically install for you, leaving you to handle that job on your own. Thatis where the second part of todayis two-fer tip comes in. Automator can install downloaded widgets for you thanks to an easy-to-build workflow.

    - Launch Automator - itis in the Applications folder on your hard drive.
    - Weill be working exclusively with Finder actions, so select Finder in the Library column.
    - Drag the Get Selected Finder Items from the Action column to the workflow area. Thatis the big empty space just to the right of the Action column.
    - Drag the Move Finder Items action so that it sits below the Get Selected Finder Items action in the workflow window.
    - Click the To pop-up menu and select Other from the bottom of the list.

    Use the TO pop-up menu to select your Widgets folder.
    - Navigate to your Widgets folder. Itis in Library > Widgets.
    - Select the Widgets folder, and click the Open button.
    - Check Replace existing files. That way, you can update widgets without getting a dialog that tells you the widget is already installed.
    - Choose File > Save As Plug-in from the menu bar.
    - Give your plug-in a descriptive name, like "Install Widget."
    - Choose Finder from the Plug-in for pop-up menu.
    - Click the Save button.

To use your new Automator workflow you need a widget that isnit compressed. If the widget you want to install is still a ZIP or Stuffit archive, Double-Click it first so it uncompresses. Now do this:

    - Control-Click (Right-Click on a two button mouse) on the widget.
    - Slide your mouse down the contextual menu to Automator.
    - Now choose your widget installer from Automatoris fly-out menu.


Select your workflow to install the widget.

Since this workflow only has two steps, itis easy to modify for other uses. I made one that installs screen savers for me, too.

Popular TMO Stories

No Comments

Log in to comment (TMO, Twitter or Facebook) or Register for a TMO account