Re: cleaning my desktop
Re: cleaning my desktop
- Subject: Re: cleaning my desktop
- From: demski <email@hidden>
- Date: Thu, 4 Oct 2007 22:56:07 +0200
Am 03.10.2007 um 21:38 schrieb Luther Fuller:
On Oct 3, 2007, at 1:32 PM, Steven D. Majewski wrote:
Now my questions for Applescript Users is:
How can you access the contents of a smart folder from
Applescript ?
Although they show up in the Finder (looking like folders) they are
really xml plist files. I don't see anything in the Finder
dict to
access these smart folders. Is spotlight otherwise scriptable ?
I don't see a separate dict for it, although I do see one for
Sherlock.
Right. A .savedSearch file looks and acts like a folder ... but
it's not. It's a .plist file. I have looked for, but not found the
location of the results of the search. They are NOT part of the
file. May not exist.
Spotlight does not have a dictionary ... you can not script
Spotlight. You can, however, write an AppleScript application that
writes custom search criteria to a .savedSearch file, then runs it.
I've found the results to be very convenient and quick. I have a
very low opinion of Spotlight, but AppleScripted searches are very
nice. (More details if anyone are interested. I posted something
that searched pdf contents earlier this year.)
You can script spotlight – via shell.
man mdfind gives You an idea of what it could do.
I played around with it some time ago and was amazed about the speed!
But it is not trivial to get a list of all MDItems available...
go around reading the archives of the spotlight-developer-list of
apple and also on the dev-pages
some lttle examples to depart here:
http://developer.apple.com/macosx/spotlight.html
Hth, demski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40unter-anderem.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden