Contents  EagleFiler Manual  Translate  Technical Support

5.2.14   Scan for New Files

An easy way to add new files to your EagleFiler library is to save new files (or move existing files) directly into the Files folder in the library folder. When EagleFiler scans the library folder, it will import the new files in-place (without copying them) and assign tags and notes based on the Spotlight comments and Finder tags. When importing in this manner, EagleFiler does not skip duplicate files; any file that you specifically add to the library folder will stay there.

EagleFiler scans the Files folder for new files when you open the library. In this way, files added since the last session will be auto-imported. Unlike with the To Import folder, EagleFiler does not automatically scan the Files folder for new files once the library is open. This is to prevent accidentally importing files (or packages) that are in the midst of being saved, which could lead to duplicate files or data corruption. Instead, you can manually trigger a scan at an opportune time (i.e. when you are not in the midst of copying or saving new files) by choosing Scan for New Files from the File menu or by invoking that command via AppleScript.

Preventing Folders From Being Scanned

There may be cases where you want to prevent certain files from being auto-imported by a scan. To hide the contents of a folder from EagleFiler, assign it the ef_unscanned tag. This will let you store files in that folder in the Finder, without having EagleFiler detect them, import them, and clutter up its window.

Preventing Files From Being Scanned

You can use the UnscannedExtensions default to make the scan ignore files and folders of certain types inside of an already-imported folder. For example, to prevent EagleFiler’s scan from picking up temporary files generated by LaTeX (.aux, .out, .toc), you could type this command into Terminal:

defaults write com.c-command.EagleFiler UnscannedExtensions -array aux out toc

You can also use the UnscannedFilenames default to make the scan ignore files and folders with a certain name inside of an already-imported folder. For example, to prevent EagleFiler’s scan from picking up ctags files named tags, you could type this command into Terminal:

defaults write com.c-command.EagleFiler UnscannedFilenames -array 'tags'

For both of these defaults, changes take effect for new files imported after you relaunch EagleFiler. (There is no need to restart your Mac.) Each invocation of the command overwrites the previous one, so, for example, to set multiple extensions as unscanned they should all be listed in a single command.

Disabling Scans

You can disable automatic scans using the ScanForNewFilesOnOpen esoteric preference.

     Contents  EagleFiler Manual  Translate  Technical Support