![]() The one argument is an object providing access to many properties of the to-be-checked item (i.e. If string.find(diskItem.name, "good") thenīasically, you have to implement a function named match that takes one argument, and returns either true or false (returning nothing is fine, too, and is the same as returning false). ![]() For instance, if you have a file named a in that folder, you can choose it in the Find window as shown:Ī simple script that imitates the "Name contains good" rule would look like this: These are scripts that are placed into the Matching folder. Writing new scripts Scripts for matching during search Then click on the right-most pop-up menu again, where you will now find the newly installed script.Ĭhoose the script from the menu to use it with the Script rule. Matching), and make sure its name ends in Place the script into the appropriate sub folder (i.e. ( Note: In v2.4 and 2.4.1, the Script rule does not appear in the pop-up menu unless you hold down the option (⌥) key before clicking on it!) You can also reach the scripts folder by clicking on the rightmost pop-up menu for the Script rule:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |