Re: Quick Reference tip

From: Date: Sun, 27 Jul 2003 11:44:49 +0000
Subject: Re: Quick Reference tip
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19576@lists.php.net to get a copy of this message
Hi there, thanks for a great project, i'm using the site all the time as reference for my php- script Here's a little AppleScript you may want to add to the Quick Reference page ( http://www.php.net/tips.php ) for the Mac-OS community: BBEdit users can put this little AppleScript into the Scripts-folder of BBEdit and look up functions on the php-site as they type. -------------------------- tell application "BBEdit"
    set my_function to selection of window 1 as string
    if my_function = "" then
        set my_function to text returned of ¬
            (display dialog "PHP Function:" default answer "")
    end if
        if my_function is not "" then
        set target_URL to "http://www.php.net/" & my_function
        open location target_URL
           end if
end tell -------------------------- With small modifications it will also work on other text-editors if they can use AppleScripts. The script uses the default web-browser to show the function-page on php.net.
Thanks for the tip, I have added it with your name, though a bit reworded. I have not used AppleScript so far, so I don't know, what the char after "returned of" means for AppleScript. I have assumed that it is not needed, and as it is not a standard ASCII char, I have removed it from the tip. Please check if the final tip I have added is all right. The tip will be online in a few minutes on php.net (other mirrors may need more time to update). Thanks for the suggestion, Goba

« previous php.mirrors (#19576) next »