C-Command Software Forum

Applescript to add file to a folder within a library

The command:

tell library document "EF Miscellaneous.eflibrary"
import files {a_file}

adds a file to library unfiled. Is there any way to send it to a folder within the library?

Not at present, except that you could try to figure out which record was added most recently and then change its container to the folder that you want. Making it possible to set the destination folder is near the top of my to-do list.

EagleFiler 1.2 adds a container parameter to the import command, so that you can specify which folder the items should be imported into.