Re: Searching an html tag with Applescript and BBEdit

2021-06-28 Thread Murat
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

Re: Scripts

2021-06-28 Thread Christopher Stone
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

Re: Searching an html tag with Applescript and BBEdit

2021-06-28 Thread jj
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:

Re: Scripts

2021-06-28 Thread Patrick Woolsey
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

Re: Searching an html tag with Applescript and BBEdit

2021-06-28 Thread Murat
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 ¬

Re: Searching an html tag with Applescript and BBEdit

2021-06-28 Thread Murat
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

Re: Searching an html tag with Applescript and BBEdit

2021-06-28 Thread jj
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*,

Re: Scripts

2021-06-28 Thread MediaMouth
> 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

Scripts

2021-06-28 Thread Paul G
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

Searching an html tag with Applescript and BBEdit

2021-06-28 Thread Murat
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