Hello,
I am new to BBEdit. I have searched this forum but have not been able to
locate a discussion relevant for my problem. I am maybe doing something
stupid but, I cannot make BBEdit find an HTML using it through Applescript,
in a document that definitely includes this tag.
My simple script
Hey All.
Would anyone be up to writing a couple of basic scripts for me to use in
BBEdit?
If so let me know price.
I just need a script to alphabetically sort lines within certain parameters
inside a text doc and another to replace certain text within a text doc.
I know this may be simple but
> On Jun 28, 2021, at 05:48, Paul G wrote:
>
> Hey All.
>
> Would anyone be up to writing a couple of basic scripts for me to use in
> BBEdit?
> If so let me know price.
>
> I just need a script to alphabetically sort lines within certain parameters
> inside a text doc and another to
Yes! These options helps to find the text now but the replace part poses a
problem now (I do not use the grep here because it is a simple substitution:
-- THis script is directly adapted from the BBEdit manual, page 335
tell application "BBEdit"
set result to (find "" searching in ¬
Hi Murat,
Might it be that the insertion point in your file is past the tag
and the find wrap around option is not set?
Try setting the "wrap around" option to true in the find command:
*find* "" searching in *text* 1 *of* *text window* 1 options {search
mode:*grep*, starting at top:*true*,
Thank you very much Jean,
I will explore these options to check if they solve my problem. Indeed, I
have assumed that if I open the document, the cursor would be at the
beginning of the file, which is not necessarily true.
I have seen these options in the dictionary but was not sure how to use
On 06/28/2021, at 04:35, Paul G mailto:p...@profile-music.com>> wrote:
> Would anyone be up to writing a couple of basic scripts for me to use in
> BBEdit?
> If so let me know price.
>
> I just need a script to alphabetically sort lines within certain parameters
> inside a text doc and another
Hello again Jean,
When I do this:
set result to (find "" searching in ¬
(alias "full HFS path to my file") ¬
options {starting at top:true} with selecting match)
if (found of result) then .
Script debugger tells me, for the last line
Variable result is
Murat,
To have a result with the found object you have to remove the "returning
results" options or set it to false in the find command.
*tell* *application* "BBEdit"
*set* result *to* *find* "" searching in *text* *of* *first* *window*
options {starting at top:*true*}
*end* *tell*
Result:
On 6/28/21 at 5:35 AM, p...@profile-music.com (Paul G) wrote:
[...]
I just need a script to alphabetically sort lines within
certain parameters inside a text doc and another to replace
certain text within a text doc.
I know this may be simple but do not have knowledge or time to
do this
10 matches
Mail list logo