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 is:
tell application "BBEdit"
    open (alias "path to my file") -- this file opens, no problem, using 
the real path that I do not give here
    set result to (find "<title>" searching in text of text window 1 with 
selecting match)
    set mytext to text of text window 1 -- this text is good and contain 
then <title> tag
end tell

But the tag is not found and the result variable is not created with the 
result of the search.

I can search <title> directly in BBEdit, and it of course finds it.
I have tried to escape then < and > characters but of course this does not 
make sense for Applescript either. These characters do not need escaping I 
think.

I am a bit lost here because I do not see why BBEdit cannot find the tag in 
a file that contains it. Any help would be very much appreciated.
Very cordially,

Murat

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/b764307d-9075-4af7-b325-979e7df4e221n%40googlegroups.com.

Reply via email to