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

/movetype/mt-tb.cgi/359

Recently Played on iTunes

  1. “Stop”
    Ritual De Lo Habitual
    Jane's Addiction
    06/10/10 14:53
  2. “I Turned into a Martian”
    Boxset Collection 1: Plan 9
    Misfits
    06/10/10 14:51
  3. “Nothin' To Live For”
    Problematic
    All
    06/10/10 14:50

Last 100 Songs >