: ( ... I don't understand.

If I run AS from AppleScript Editor the work around works perfectly. I
even found out the way for multiple keystroke:

tell application "System Events" to keystroke "+" using {command down,
shift down}

But if I run the same AS from the AppleScript Menu in BBEdit, the
workaround doesn't work.

On Nov 20, 10:27 pm, heath gertsch <[email protected]> wrote:
> Here is a quick work around that might work for you.
>
> First go to your bbedit preference and set a keyboard short cut for
> the css format.
>
> Then you would write an applescript that would look something like
> this:
>
> tell application "BBEdit"
>         activate
>         tell application "System Events" to keystroke "1" using command down
> end tell
>
> This example assumes that you set the keyboard short to command 1, but
> of course you could set it to whatever you want.
>
> On Nov 19, 6:47 am, Stefano <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I would like perform the BBEdit's command "CSS format" running an
> > AppleScript ... but I'm not able.
> > Actually in AS I've seen "format mode ..." for instance, and it works
> > perfectly, but not CSS format. I saw it's possible to open (and to
> > close) the CSS palette, but even if I pause ("delay 3") the AS for 3
> > seconds, enough to manually click the palette format button ... during
> > the delay the click operations are not active.
> > Then there is CSS format in the Markup Menu as well, but unfortunately
> > I don't know how to perform a menu command via AS. This would seem the
> > easiest way ...
>
> > Does anybody know please, how to solve this ? Thanks.

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