Skip to main content
Participant
April 18, 2007
Question

setUpFindReplace for 'selected files in site'

  • April 18, 2007
  • 2 replies
  • 519 views
I've written a setUpFindReplace routine but it only works on the current open document.

The Find requester has 'Find In:' option of 'Selected Files in Site'. Where can I find/use this option programmatically?
This topic has been closed for replies.

2 replies

seanysAuthor
Participant
April 19, 2007
Thanks Chris. Love your work.
seanysAuthor
Participant
April 18, 2007
And while we're here...

Is there a way to suppress the 'There is no way to undo changes in files that are not open" requester?
April 18, 2007
There are two additional undocumented options you can add to the searchObject:
matchWholeWord (bool) corresponds to the checkbox in the find dialog
searchWhat (string) accepts values "document", "allOpenDocuments", "site", "selectedFiles", "directory", and "selectedText" which corresponds to the combobox in the dialog.

In your case you should just need to go:
searchParams. searchWhat = "selectedFiles";

I didn't see a way to suppress the undo warning.

Hope this helps,
Chris
Adobe Dreamweaver Engineering