Rowen-
My suggestion won't work. You can assign a hot key to the last "change
case" option.  Here's a script that will change the case of a
selection to upper case or lower case, based on the case of the first
letter. So you'll have to crowd your script menu a little bit more.

Steve
(* Change case of selection
*)

tell application "BBEdit"
set _result to find "(?s)(.*?)([a-zA-z])(.+)" searching in selection
of text window 1 options {search mode:grep, starting at top:false,
wrap around:false, backwards:false, case sensitive:false, match
words:false, extend selection:false}
if found of _result then
set _found to grep substitution of "\\2"
else
display dialog "Error.. either nothing is selected or there are no
letters in the selecton"
return
end if
set _lowcase to "abcdefghijklmnopqrstuvwxyz"
considering case
if _found is in _lowcase then
change case selection of text window 1 making raise case with
replacing target
else
change case selection of text window 1 making lower case with
replacing target
end if
end considering
end tell

On May 22, 7:21 pm, Steve Samuels <[email protected]> wrote:
> You can assign a hotkey to "Change Case" in the "Menus"
> Preferences.pane ("Text" Menu)..
>
> Steve
>
> On May 19, 8:13 pm, rowen <[email protected]> wrote:
>
>
>
> > Is there a trick to assigning hotkeys for changing the case of
> > selected text? I realize I can write scripts and assign hotkeys to
> > those, but I'd rather not clutter up the scripts menu if I don't have
> > to.

-- 
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