I’m trying to script Text Wrangler, and what I’d like to know is: How does one get a list of files returned from a multi-file search?
The I have is:
tell application “TextWrangler”
activate
set fndResults to (find “foo” searching in {alias “MyHD:files:”}
options {search mode:literal, case sensitive:false, match words:false,
extend selection:false})
set theResults to search results browser 1
end tell
What’s return from find (fndResults) is a list, but when I open the TextWrangler dictionary the dictionary says find returns a ‘Search Match’. How do I get a Search match object?
Or is there a different way to get a list of the files returned from the search?
Thanks,
Jeff