Can you add catalog entries using a script?

6 views
Skip to first unread message

Elias Levy

unread,
May 30, 2013, 5:12:21 AM5/30/13
to blacktree-...@googlegroups.com
I know you can add actions using scripts, but can you add catalog entries using a script?

A review of the docs in qsapps.com and some Google searches did not answer this question.

The plug-in developer how-to hints that you can (it mentions that you should not use AppleScript to extract this information from an application  as you don't want the application launching every time the catalog is rebuilt), but its quiet about the topic otherwise.

If you can, how would one go about it?

Elias Levy

Rob McBroom

unread,
May 30, 2013, 9:00:35 AM5/30/13
to blacktree-...@googlegroups.com
I guess it depends on what you’re trying to add and whether or not you truly mean “entries” or just individual items. Files/folders, URLs, and strings are pretty straightforward. For just about anything else, you’d need to write a plug-in.

If it’s a file or folder, you can select it in Quicksilver and use the “Add to Catalog” action.

There are also multiple ways to pre-create an entry that you can add individual items to on-the-fly whenever you want.

One way is to add a “File & Folder Scanner” entry that points to a text file. For the “Include” setting, pick “Text Lines”. You can add URLs, filesystem paths, or arbitrary lines of text to this file however you want, and they’ll appear in the catalog (after the next scan).

If you just want to add files/folders, you can install the OpenMeta plug-in and add an “OpenMeta Tags” entry for a particular tag and then at any later point, assign that tag to a file to have it added to the catalog. I went into more detail about that at http://projects.skurfer.com/posts/2013/tagging_tips/ under “One-off Catalog Entries”.

-- 
Rob McBroom
<http://www.skurfer.com/>

Reply all
Reply to author
Forward
0 new messages