I’m finding the documentation on using the *filter* option for *replace* in
an AppleScript less than helpful: i don’t understand the syntax.
Without that option, this *replace* command works perfectly in the overall
script:
*replace* (("TOCCHAP" & currchap *as* *text*) & ">") using navlinkholder
searching
in story_directory options {showing results:*false*} saving *yes*
The moment i add the clause *filter* "Exclude index.html" so it becomes
this:
*replace* (("TOCCHAP" & currchap *as* *text*) & ">") using navlinkholder
searching
in story_directory options {showing results:*false*} *filter* "Exclude
index.html" saving *yes*
and try to run the script, it throws the following error:
*error* "BBEdit got an error: Could not make some data into the desired
type (MacOS Error code: -1700)" number -1700 to *record*
There is an existing file filter i made via the multiple file Find
interface named:
Exclude index.html
with settings:
Any File name root is not index
Seems obvious that my clause for *filter* is all wrong, but the
documentation isn’t making it clear and searches on this group haven’t
yielded anything.
What is the proper syntax when one wants to use the BBEdit *filter* noun in
AppleScript?
Thanks in advance as always—the help has been stellar so far!
(BBEdit 11.6.8, macOS 10.12.6, AppleScript 2.5, Script Editor 2.9, if any
of these matter)
--
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/e74d85b9-0076-4726-93e0-6666579dd419n%40googlegroups.com.