Auto index folder when updated

Hi,

I’m a newbie in using DevonThink and i have just come across a problem that i can’t seem to solve.

I have a folder full of academic papers that i find and download by using the program ‘Papers’.

I want this folder to be indexed in DevonThink and every time i add a new pdf to the folder i want DevonThink to update automatically.

I thought this was done by using the Action Index script, but by the love of god i can’t make it work. Here is what i have tried so far.

In DevonThink i have manually indexed the folder, then used the DevonThink inspector to view the folder properties, and added the Action Index script to the script section. DevonThink then indicates that a script is attached to the folder, but it never updates when changes are made via the finder to the folder (when i add a file to the folder).

Secondly i have tried adding the Action Index script directly to a folder via folder actions in the finder. I set up a workflow in automator and then added that to the folder - since, for some reason, the Folder Actions did not want to let me use the Action Index script directly.

Now i have no idea how to proceed. I have been browsing through this forum and i think i am doing it like it is described in several other posts here. However i am beginning to wonder if i have to change anything in the script itself? Currently i am using the ‘out-of-the-box’ version.

All help appreciated - and this is the first time i am setting up a folder action/automator/apple script, so yes i am a complete noob here :slight_smile:

Folder actions are only used by the Finder but you could use Synchronize.scpt (see Disk Image > Extras > Scripts > Examples) instead.

Yep that solved all my problems! Thanks!!!

:smiley:

Script doesnt seem to work.

Testing how well this works. I deleted an item where it resides then I execute the script (index for all databases) and the item still showing after.

It deletes(not show) the indexed file Only if I highlight >File> Update Indexed Items.

Also why is there an option to move an indexed file. when someone move an indexed file to another group it creates duplicates. And if you were to delete that indexed file from its original place the indexed files in DevonThink doesnt get delete using File>Update indexed Items.

This thread is 10 years old …

I think meanwhile File > Update Indexed Items is the usual way to update indexed items.

From help

Update Indexed Items: Indexed items are updated when you view them. If you need to be sure everything is up-to-date use this command. If nothing is selected, the enclosing group of the current group is used. It also reads changes made to the Finder or Spotlight comments of the to-be-updated files and applies the changes to the files’ counterparts in the database. Finally, this command removes indexed items that have lost their external counterpart. It does not affect items moved manually to the group.

Why do you need a script? And what script are you referring to?

There is script in “more scripts” that doesnt seem to work. and yes I know the File>Update Indexed items works fine that is if the item isnt move to another group.

What script are you referring to? There is no longer a Synchronize script available in the More Scripts of DEVONthink 3.