Re: Get Finder items having a given label
Re: Get Finder items having a given label
- Subject: Re: Get Finder items having a given label
- From: pete boardman <email@hidden>
- Date: Thu, 17 Nov 2005 09:43:44 +0000
On 17 Nov 2005, at 05:06, Tim Mansour wrote:
I'm wondering if there's a way to get all Finder items that are
labelled Green (or any other colour for that matter)? I thought
this would involve using the Get Finder Items action, but it
doesn't seem to include finding by Label.
Using an AppleScript action perhaps...
--
set apple to {orange:1, red:2, yellow:3, blue:4, purple:5, green:6,
gray:7}
tell application "Finder"
set s to (every item of front window whose label index is
apple's blue) as alias list
end tell
--
Or you could try using Spotlight. I don't see how to do it using
Automator's Spotlight but it works "on the command line":
do shell script "mdfind kMDItemFSLabel=4"
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden