On 02/10/2019, at 16:24, John Muccigrosso <[email protected] 
<mailto:[email protected]>> wrote:
> I just discovered (I think) that BBEdit won't format an html doc via 
> AppleScript when it's in the background. That means it's necessary to have it 
> "activate" first.


Hey John,

Hmm...  I can confirm.

----------------------------------------------------------------

tell application "BBEdit"
    tell front text window
        
        format mode hierarchical ¬
            selection only false ¬
            normalizing tag case true ¬
            normalizing attribute quotes true ¬
            with encode entities in attributes
        
    end tell
end tell

----------------------------------------------------------------

If BBEdit is visible in the background this script fails.

NOTE -- BBEdit-Talk is a user-list.  Bug-reports need to go to Bare Bones 
Support.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://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].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to