Other Entries

Log

Applescripts for PHP and Cake Reference from BBEdit

Here’s a handy applescript for looking up a php function on the php site. Save it to ~/Library/Application Support/BBEdit/Scripts and assign a keyboard shortcut to it from the scripts palette. I use Ctrl-p. To use it, just select a php function and hit your keyboard shortcut or select the script from the BBEdit script menu.

set term to ""
set phpurl to "http://www.php.net/"

tell application "BBEdit"
    set term to selection of text window 1 as text
end tell

set phpurl to phpurl & term

open location phpurl

And one for cake:

set term to ""
set phpurl to "http://api.cakephp.org/search.php?query="

tell application "BBEdit"
    set term to selection of text window 1 as text
end tell

set phpurl to phpurl & term

open location phpurl

05/22/06 08:01PM Applescript CakePHP

Trackbacks

TrackBack URL for this entry

http://www.chriscassell.net/movetype/mt-tb.cgi/359

Recently Played on iTunes

  1. “My Sharona”
    Frat Rock: The '70s
    The Knack
    06/04/11 09:27
  2. “The KKK Took My Baby Away”
    Anthology
    The Ramones
    06/04/11 09:25
  3. “My Sharona”
    Frat Rock: The '70s
    The Knack
    06/04/11 09:24

Last 100 Songs >