Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use a Smart Folder for a better 'Recent apps'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use a Smart Folder for a better 'Recent apps'
Authored by: mistersquid on Jun 15, '05 01:41:23PM

I just created two smart folders because I wanted to access recent applications as well as recent files.

My question is whether there is any way to specify a smaller period than an hour. I tried using decimal numbers but that didn't work. I want this functionality in case, for whatever reason, I need to reopen a program I just quit.

Any ideas?



[ Reply to This | # ]
10.4: Use a Smart Folder for a better 'Recent apps'
Authored by: adrianm on Jun 15, '05 04:18:05PM
If you drag a smart folder to TextEdit or SubEthaEdit or whatever, you'll see an expression component like:

(kMDItemLastUsedDate >= $time.today(-3))
(in last 3 days).

According to http://developer.apple.com/documentation/Carbon/Conceptual/SpotlightQuery/index.html you can use $time.now(NUMBER) where NUMBER is seconds.

So change the expression to use a number of seconds instead.

[ Reply to This | # ]

10.4: Use a Smart Folder for a better 'Recent apps'
Authored by: mistersquid on Jun 16, '05 09:10:11AM

According to http://developer.apple.com/documentation/Carbon/Conceptual/SpotlightQuery/index.html you can use $time.now(NUMBER) where NUMBER is seconds.

Thanks, adrianm. I'm only a sometimes scripter (in PERL when I need it and AppleScript when I can't avoid it). I didn't mean to make someone look at the dev documentation for me, but I appreciate your reply.

Cheers,
msq



[ Reply to This | # ]