On May 30, 2012, at 17:47, Oliver Taylor wrote: > I'd like a hotkey that brings up the find window with specified options (the > find options are sticky but when I hit this key I want them to be reset to my > specs). I've got the following applescript, but it doesn't populate the > search field or fill-out the options. > > (I don't know much about applescript) > > tell application "BBEdit" > try > open find window > find "hello" searching in text of front text window options {search > mode:grep, starting at top:false, wrap around:true, backwards:false, case > sensitive:false, match words:false, extend selection:false} with selecting > match > end try > end tell ______________________________________________________________________
Hey Oliver, This is the scripted find command and has nothing to do with the find dialog. As far as I can see there is no way to do what you want. Put some text in the find dialog and run this: tell application "BBEdit" properties of find window end tell It doesn't give you much. I suggest you make a feature suggestion to support. If you do you can add me as a +1 - I think the find window should be more scriptable. > Also, when I hit "return" the window goes away, but when I hit the hotkey for > "previous" (shift-command-G) the window stays open, is there a way to "find > previous" and dismiss the window with one keystroke? I don't see any way. You think that Shift-Return/Enter would find backwards though. -- Best Regards, Chris -- 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 bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>