Searching Spotlight with ruby

F

Filipe

Is it possible to search for files using spotlight in ruby just like
it's done on the terminal with the command 'mdfind'?
 
P

Phrogz

Is it possible to search for files using spotlight in ruby just like
it's done on the terminal with the command 'mdfind'?

You can run any terminal command in ruby (and capture the output) via
a variety of mechanisms. Does that not do what you need?
 
F

Filipe

You can run any terminal command in ruby (and capture the output) via
a variety of mechanisms. Does that not do what you need?

For sure. How do I go about running terminal commands and getting
their outputs?
I'm new to this ruby thing.

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,008
Latest member
KieraMcGuf

Latest Threads

Top