On Mon, Aug 19, 2013 at 5:29 PM, John Delacour <[email protected]> wrote:
> tell application "BBEdit"
> activate
> tell front text window
> set the clipboard to (get selection as string)
> if live search bar visible is true then
> set live search bar visible to false
> end if
> set live search bar visible to true
> end tell
> end tell
>
Thanks, that's helpful. I see that "paste" is in the BBEdit AppleScript
Dictionary, but my AppleScript is extremely rusty. I tried to make the
process more efficient by simply adding "paste" like this:
tell application "BBEdit"
activate
tell front text window
set the clipboard to (get selection as string)
if live search bar visible is true then
set live search bar visible to false
end if
set live search bar visible to true
paste
end tell
end tell
...but it didn't work; I still need to command-v. Why is that?
Thanks,
Lawrence
--
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].