Great idea Jon! I tried posting in the other scripts thread but it always appeared to reject my posts.
So to make a start, following your template at the end I thought I'd post a bit of info about my scripts pack from the files section: (Note: Apologies if the formatting is all garbled up! I really spent a long time trying to make the descriptions into an index like table, but that's no joy with a proportional font If you care about order, here's a screenie with the formatting as it was supposed to look like: http://skitch.com/andreberg/b9m1m/ab-applescript-actions-v0.2) (Note to Jon: If you decide to bring this over to the AppleScripts page, it might be easier to just inline the screenshot as I gather this is possible within pages but not posts) --------------------- BEGIN ---------------------- Title: AB AppleScript Sample Actions Description: A collection of sample AppleScript actions. Included are some convenient scripts for programmers, a handful of Finder scripts, a few conversion scripts and some TextMate love. The included scripts are: NAME .......................................... WHAT IT DOES* Raw Text ................................... does a dump of text, escaping all control and quotable characters String Length ............................. counts characters of text Escape Newlines ..................... replaces occurrences of \n in text with \\n Escape Returns ........................ replaces \r with \\r Unquote ...................................... inverse of Raw Text Compute MD5 ........................... calculates MD5 for text Compute MD5 ........................... calculates MD5 for Finder items Compute RIPE-MD160 ............ same, but uses RIPE-MD160 on text Compute RIPE-MD160 ............ same, but uses RIPE-MD160 on Finder items Compute SHA ............................ same, but uses SHA on text Compute SHA ............................ same, but uses SHA on Finder items Compute SHA1 .......................... same, but uses SHA-1 on text Compute SHA1 .......................... same, but uses SHA-1 on Finder items Get UUID ..................................... returns a Universally Unique Identifier (object action) Get UUID ..................................... returns a Universally Unique Identifier with header, ready to be inserted into Xcode (object action) Convert to Decimal .................... convert text from octal or hexadecimal to decimal representation Convert to Hex ............................ convert text containing a decimal number to hex Convert to Oct ............................. convert text containing a decimal number to octal Convert To PDF ......................... convert Finder items to PDF Convert To PostScript ............... convert Finder items to PostScript (.ps) Create New Document ............. brings Finder to front, asks for a file name (with or w/o ext) and creates the file in Finder's front window Create Path ................................. given a path string, creates all neccessary folders to make that string a valid hierarchy, starting in front Finder window Replace Text in Filename ........ replaces some string in the filenames of Finder items with another string List Window Content .................. does a 'ls -la' shell command for path of front Finder window List Entire Window Contents .... does a 'ls -la' shell command for path of front Finder window, incl. subfolders Open In TextMate ....................... opens Finder items in TextMate Look Up In Dictionary ................ this is a replacement for the broken plugin action with the same name. Looks up text from first pane. Look Up Word On Clipboard .... self explanatory (object action) Make New AppleScript .............. creates a new script in Script Debugger with text Make New Sticky ........................ makes a new sticky with text. this also replaces a broken plugin action New Python Document ............... makes new document containing text in TextMate and sends ctrl+shift+alt+p, 5 to switch to Python syntax mode New Ruby Document .................. same, but sends ctrl+shift+alt+r, 4 to switch to Ruby syntax mode New Shell Document .................. same, but sends ctrl+shift+alt +s, 1 to switch to Shell Script syntax mode New TextMate Document ........... make new doc with text in TextMate and leaves it in Plain Text mode (Note: If you want to use the TextMate scripts you may have to adjust the numbers for the keystroke sends) Maximize Front Window.............. maximize frontmost window of frontmost app to bounds of display Zoom Front Window .................... this replaces the default script with the same name and ads support for non-standard apps *) Notes on WHAT IT DOES: If you see the word "text" substitute with "text from first pane" If you see "Finder items" substitute with "one or more Finder items" If you see "object action" run the script from first pane, with "Run" as action in second pane Where to Save: ~/Library/Application Support/Quicksilver/Actions (recommended) For the "Zoom Front Window" and "Maximize Front Window" the recommended install location is: ~/Library/Application Support/Quicksilver/PlugIns/Extra Scripts.qsplugin/Contents/Resources/ExtraScripts/Miscellaneous (Note: if you get a "file exists" warning, backup the original script and just replace it with this one) If you don't get scripts which should be run from first pane to appear, try putting just the troublemakers to other QS-auto-searched folders like for example: ~/Library/Scripts ~/Library/Scripts/Applications/Quicksilver Usage: Most actions work on text, the usage pattern for that is simple. Get some text into first pane and call action/script in second pane. Where Finder items are concerned, select something in the Finder, press Cmd+Esc to invoke QS (or select items in Finder, activate QS as usual, type Cmd+G). With the Finder selection in place in pane one, choose action in second pane and just run it. For object actions you select the script itself in the first pane, and call the "Run" action on it in the second pane; Code: Download .zip: http://groups.google.com/group/blacktree-quicksilver/web/AB%20Quicksilver%20Action%20Scripts%20v0.2.zip --------------------- END ---------------------- Enjoy! I know I do. There is not one day going by where I don't utilize these scripts, especially if I am programming. André
