At 13:54 -0700 2/20/08, Richard Fairbanks wrote:
>I have been having challenges scripting BBEdit to activate or quit if any 
>dialog box ("Info., "Find & Replace", etc.) is open. A simple example is to 
>launch BBedit, open "Find & Replace", and then run the following script in a 
>script editor:
>
>try
>    tell application "BBEdit" to activate
>on error
>    say "B B Edit is not behaving!"
>end try
>
>
>EVEN WITH A TRY condition this doesn't work: it won't even run the error call! 
>Selecting it from an Applications menu or the Dock works fine.

The Find/Replace dialog needs to be non-modal!  I have asked for that before 
because I really want to paste regular expressions for copy and something else 
for replacement and I have to close the Find? replace window and re-open it to 
achieve my goals.

Bare Bones' says you have menu items for setting the fields before you open the 
dialog. Use them.

That doesn't work for me because the source items are often not from a BBEdit 
document or the dialog is already open because I have just done one global 
replace and want to do another.

Sort of related; copying "\r anythingelse" and pasting it as a regular 
expression in the search text results in "\\r" where BBEdit has helpfully 
escaped the backslash. Sigh.

-- 

--> Life begins at ovulation. Ladies should endeavor to get every young life 
fertilized. <--

-- 
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to