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. “Heroin”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:26
  2. “All Tomorrow's Parties”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:20
  3. “Run Run Run”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:16

Last 100 Songs >