I wrote a simple little Applescript to look up the selected text in
CodeIgniter's documentation:

tell application "BBEdit"
        set theText to text of front text document
        set theSelection to the selection as string
        open location "https://www.google.com/search?
as_sitesearch=codeigniter.com%2Fuser_guide%2F&q=" & theSelection &
"&sa=Go"
end tell

And despite being a total Applescript newbie, this works for the most
part. However, it does have a problem with the greater than sign (>)
common in CodeIgniter... ie. load->model. When the greater than sign
is included in what I send, I get an error back:

MacOS Error code: -4960

This is probably a simple question, but I haven't been able to find an
answer. Is there a way to encode characters like that to prevent the
error I am getting?

Oh, and happy 20th, BBEdit!

Thanks!
Scott

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to