Replied to fast.
I changed `startLine *of* selection` to `endLine *of* selection` and now it
moves to the next line after the selection.
Thanks,
Rainer
On Thursday, August 5, 2021 at 1:27:40 PM UTC+2 Rainer Krug wrote:
> Perfect. Thanks.
>
>
> On Thursday, August 5, 2021 at 12:52:26 PM UTC+
Perfect. Thanks.
On Thursday, August 5, 2021 at 12:52:26 PM UTC+2 listmei...@gmail.com wrote:
> On Aug 05, 2021, at 05:15, Rainer Krug wrote:
>
>
> I have the following AppleScript to execute het selected text in R and
> return the focus to BBEdit:
>
> ...
>
> Now I would like to set the curso
> On Aug 05, 2021, at 05:15, Rainer Krug wrote:
>
> I have the following AppleScript to execute het selected text in R and return
> the focus to BBEdit:
> ...
> Now I would like to set the cursor in BBEDit to the next line after the
> selected text ore line it is in.
Hey Rainer,
You can do so
I have the following AppleScript to execute het selected text in R and
return the focus to BBEdit:
*tell* *application* "BBEdit"
*set* the_selection *to* (selection *of* *front* *window* *as* *string*)
*if* (the_selection) *is* "" *then*
*try*
*set* the_selection *to* *line* (*get* startLine