17 AppleScripts You Should Try
Posted 10/21/2008 at 3:03am
| by Greg Healy

You wanna see the clipboard? Try out this four-word script.
18. Clipboard Viewer
This next script is not on your Mac by default, but is very simple to create in the Script Editor. This script will show a dialog with whatever is on the clipboard. If you have a photo copied, the filename of that photo will be displayed. In order to see what is currently on your clipboard, you only need to type four words into the Script Editor:
display dialog (the clipboard)
Copy and paste these words into the Script Editor, and save the file as a script. Click on the Scripts menu (Check out below for how to turn the scripts menu on) and select Open Scripts Folder > Open Computer Scripts Folder. Drag and drop the Clipboard Viewer script from its current location to this folder, and voilà! You’ve just added a script to the Scripts menu.
The script you just added is now in the root-level Scripts folder (/Library/Scripts). To add it to the user Scripts folder, add the new file to ~/Library/Scripts. User Scripts are displayed at the bottom of the Scripts menu and available only to you, while computer scripts (in the root-level Scripts folder) are available to all users on your Mac and displayed at the top of the menu.
The Scripts folder contains tons of other scripts to try, and if you’d like to learn more about writing your own AppleScripts, some good places to start are Macinstruct, Apple’s main AppleScript page and another in the developer reference library, and the vast resources at MacScripter.net.
BONUS: How to Set up the Scripts Menu
The Scripts menu is not turned on by default, but it's a piece of cake to get it to show up in your menubar. First, you need to open the AppleScript Utility (Applications/AppleScript). This will open up a very minimal window that contains a checkbox labeled “Show Script menu in menubar.” Make sure that both this and the “Show Computer scripts” boxes are checked.
After doing this, you should see the AppleScript “scroll” icon show up in your menubar, which will let you open the folders that contain your scripts, as well as run the scripts contained in those folders.