Hi, 

I'm going really crazy :-( …

These simple UI scripts work perfectly. And they work perfectly running 
from Editor and running from BBEdit's Script Menu.

*tell* *application* "BBEdit" *to* *activate*

*tell* *application* "System Events"

*tell* *process* "BBEdit"

*click* *menu item* "Balance & Fold" *of* *menu* "View" *of* *menu bar* 1

*end* *tell*

*end* *tell*


Or similar


*tell* *application* "BBEdit" *to* *activate*

*tell* *application* "System Events" *to* *tell* *process* "BBEdit"

*keystroke* "B" using {command down, shift down}

*end* *tell*

*end* *tell*


BUT … I create a script where I can find in sequence some tags (<p></p> or 
<div></div> or even css declaration { } ... and so on) and then perform the 
same UI action when a desidered tag has found.

AND … this script ***works perfectly*** running it from Apple Script Editor 
but doesn't work absolutely running it from BBEdit's Script Menu. It finds 
correctly the sequence of all the desired tags, but then nothing happens 
where instead from the Editor it folds in sequence all found tags.

At the beginning I had that UI action in an handler. So I thought not to 
use it in an handler, but nothing changed.
Then I put different *delay *in the repeat's block and in different 
positions … Nothing. Nothing. Nothing. And nothing again.
So, have you any idea please?
I don't like at all UI scripting, but unfortunately there is not any other 
way to fold items.
And it's a shame because sometimes folding can be rather useful.




-- 
This is the BBEdit Talk public discussion group. 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>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to