Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

File list from Spotlight

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  ACREDITE FUNCIONA!!!!!  
Author Message
Tobias Weber

External


Since: Jul 29, 2003
Posts: 104



(Msg. 1) Posted: Wed Jul 23, 2008 4:24 pm
Post subject: File list from Spotlight
Imported from groups: alt>comp>lang>applescript (more info?)

This message is not archived

 >> Stay informed about: File list from Spotlight 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 2) Posted: Wed Jul 23, 2008 4:24 pm
Post subject: Re: File list from Spotlight [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Tobias Weber wrote:

> Hi,
> the only way Google found to interact with Spotlight is UI scripting
> Finder. Honestly? My script needs a list of file satisfying some
> conditions to work on.

Use AppleScript's 'do shell script' command to run mdfind.

--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix

 >> Stay informed about: File list from Spotlight 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Force Finder to display folder/file list - This is a further development to a problem I was having with Finder and posted about on 20 July. I have an AppleScript that renames lots of folders and files by traversing down the content tree of any folders that are dropped on the applet, assessing..

Scripting Spotlight - Back in October I asked about scripting Spotlight. Found something that works; hope you find it useful. --Copyright 2005-2006 by John Rethorst. Free (attribution appreciated). --Thanks to Gero Herrmann. property searchText : "" display di...

Getting do shell script-based Spotlight search into Spotli.. - In Tiger, you can do a Spotlight search in Applescript, looking for a string in the variable thisText: set searchResult to do shell script (("mdfind " & thisText) as string) How do you get searchResult into Spotlight's results window? -...

A List of Records - Hi there How come this code is OK: set listOfRecords to {{firstName:"George", lastName:"Bush"}} repeat with eachItem in listOfRecords <font color=purple> ; display dialog (firstName of (eachItem as record) as string)&l...

sum if items in list - I want to get the sum of all items in a list quickly. What is the fastest way to do this given all items in the list are integers? set myList to {1, 2, 3} -- Can I quickly get 6 without using a repeat loop? -- Koncept << "Contrary to popul...
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]