Refresh Smart List Folder?

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
DreamStatic
Addicted to Bruji
Addicted to Bruji
Posts: 71
Joined: Tue May 30, 2006 4:57 pm

Refresh Smart List Folder?

Post by DreamStatic »

Is it possible to refresh a Smart List Folder and it's included Smart Collections with a terminal command?
User avatar
sjk
Addicted to Bruji
Addicted to Bruji
Posts: 529
Joined: Sat Feb 21, 2009 9:01 pm
Location: Eugene

Re: Refresh Smart List Folder?

Post by sjk »

Interesting question; I'm curious what your intention is. :)

If nothing else, maybe possible with a wrapper command that uses AppleScript GUI scripting to simulate keyboard input.
User avatar
Conor
Top Dog
Posts: 5344
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Refresh Smart List Folder?

Post by Conor »

There a lot done by us in Cocoa and even more by Core Data when updating a smart collection. So it's not possible to trigger the updating directly in the SQLite3. If you want a generic solution the best solution is AppleScripting of the GUI, otherwise writing a specific SQL command to mimic a smart collection: e.i, "select uid from zentry where director like Peter%".
DreamStatic
Addicted to Bruji
Addicted to Bruji
Posts: 71
Joined: Tue May 30, 2006 4:57 pm

Re: Refresh Smart List Folder?

Post by DreamStatic »

Thank you for the quick reply. :)

I didn't think it was possible, as I figured a lot more was done than a simple database command. But never hurts to asks. :)

Nice idea, sjk. You are always friendly and helpful to all the questions around here. I check the forum most everyday and see you often assisting others. Very cool of you.
Post Reply