Finddialog.htmlTEXTVIZF    Text searches

Text searches

Smile provides the usual find commands: Find, Find again, Enter selection, Find selection.
Furthermore it provides the following functionalities.

Find definition

If you select a string (in a text window or a script window) and then choose 'Find definition' ('Edit' menu), Smile will look for an existing definition in the Smile dictionary, and then in the scripting additions folder and.
If the string is in a window targeted to another application, Smile will first look for an existing definition in the application's dictionary.
If the string cannot be found there, Smile will then look for an existing definition in the standard AppleScript definitions (i.e., in the Dialect file).

The multi-file search

Open the "Find ..." dialog. Check the "Multi-file search" box to perform a search of all the files contained in a given folder, including the files contained in nested folders. The search is restricted to text files, script files, applets and droplets.
Click the "Choose folder ..." button to choose the folder to search. The path of the selected folder will be displayed in the text field. Alternately you can enter the path in the text field. The field helps you.
Once you have entered the search string click "Find".
If you expect many hits, you may prefer not to open the files where the string is found. In this case, uncheck the "Open files hit" box. Instead of opening the files, Smile will write in the Worksheet (that it will first open if necessary) some script lines which allow to open any of them.
For each file where the string has been found, Smile will write two script lines (sometimes three), followed by the quotation of the first paragraph of the file where the search string was found. To open one of the files, select its corresponding script and press the Enter key.
Even if the string can be found in multiple places in the file, only the first occurrence will be displayed. You must use the "Find next" command of the "Edit" Menu" (  G) on the open file, to find the next occurrence(s) of the search string.

Comparing files

The Compare (  K) function compares the texts of the two frontmost windows. The "Compare" function is not sensitive to differences in text style, font, or color.
When you activate the "Compare" function, a menu entitled 'Copy' is created in the bottom bar of the two frontmost windows.
When it finds a difference, the "Compare" function hilites in each window the portion of text which it has found as being different. At this point, you may use the menu to copy the hilited text from one window to another.
Then, use the menu again or press  K again to jump to the next difference.
If no difference is found, the message "The files are identical to the end." will be presented in a dialog box and the 'Copy' menus are suppressed.


 _on Aide2^6Z2alis ]_ t tI    k  &  k   k  !  k%  _  k    k    k        $    k  4  kM  N  k    k    k    k    k          Q  kU  e   k      k  `  k u  z  k   k '  :  k Q  b  k w  |  k    k    k   k   k   k   k    k  selelist longlongpbndlist8long long2longlongBDrwfalspvistrueWIDLfalsICFFlongrSiDlongptxfTEXTGenevaptpslong Rectlist8longlonglonglongWTBHlongRqULlongLWdtlongBrWdlongAuAdfalsTbSzlong scptscptVFasdUAS 1.101.10  misccura"  CONT  misccura  cwtx4  kfrmID ascr ޭ _qbZstylSOUP&reco2Tcwtx