Search inside Coldfusion files with Spotlight?

I've recently found to my dismay that you cannot search inside .cfm files with Spotlight, and there appears to be no easy way to tell Spotlight to start looking in those files. I would assume that since they're just text files, and Spotlight does seem to search inside .htm files, that it shouldn't be too difficult to get Spotlight to do this, but I'm at a loss as to going about it.
Can anybody point me in the right direction?
Thanks.

For Spotlight to index content there has to be an mdimporter for that content type. If the files are in fact plain text, it is possible to do a bit of hacking to get them indexed, see this discussion at MacOSXHints:
http://www.macosxhints.com/article.php?story=20050514182520714&query=mdimport
Be sure to read the comments! And don't do it without a current clone of your system on an external drive that is NOT attached when you try this out (if you do try it).
Francine
Francine
Schwieder

Similar Messages

  • Finding file with Spotlight

    How do I find a file with Spotlight? Or, more to the point, why does Spotlight make it soooo hard to find the location of files?
    Example: I want to find file "foo.xls". I type in "foo.xls" into Spotlight and sure enough, there it is! Great! Er .. but wait. All Spotlight lets me do is OPEN the file. I don't want to do that, I just want to know where it is; what folder it is in.
    How do I do that? I can't right-click on items in the Spotlight result list (why not? isn't this what most users would do?). I can't press spacebar for quicklook. I can't seem to do ANYTHING with Spotlight EXCEPT open the file.
    I presume there is some hidden shortcut key involving some obscure combination of option+command etc etc, but how am I supposed to know that? Isn't this supposed to be easy?
    This is, to say the least, very frustrating.
    --Tim

    In 10.6 and prior, the user would need only hover over the item in Spotlight's results and a yellow flag would appear with the location. In 10.7, a new Spotlight feature emerged, the preview, so the yellow flag is gone.
    Use Finder's Spotlight instead in the upper right of the Finder window. You can always use Finder's "Show Path Bar" view, so that, after doing a Finder Spotlight search, you can single click on a file and see the path listed at the bottom of the window.

  • Search for a file with part of a filename in a given folder.

    How can I search for a file with part of a filename in a given folder?
    Or can I change the columns in Advanced Search so that the heading is filename?

    thanks, Michel. it had occurred to me to put a scratch tag on the folder, but I was hoping for an easier way. in future I'll do as you suggest though, because it's easier than what I have been doing.
    daryl

  • Manually Search through sparsebundle files with finder

    Is there any way I can view the files of a sparsebundle file like opening a tar/zip file in finder?

    Jennifer Edwards wrote:
    Please don't flame the newbie here--what's QuickLook? Is that a separate utility I need in order to use the BetterZip plugin? I followed your BetterZip link and didn't find any info about where to get QuickLook.
    QuickLook is part of the OS that allows you to take a "quick look" inside a file. Select a file in the Finder and press the space bar.
    There are a number of QuickLook plugins for various file types. To install one just copy it to the "QuickLook" folder inside the "Library" folder in your home directory. You may have to create that folder.
    I'm a PC who just got a MacBook Air, and I'm extremely frustrated by the fact that I can't look inside my archives or add files to existing zip archives, which is standard in Windows 7. Why on earth would Finder assume I want to unzip the whole archive by default?
    Windows uses a very simple file system. MacOS X has a lot more going on underneath. It can't accurately represent Macintosh files on anything except a Macintosh file system. There are compatibility modes for things like servers and foreign file systems, but they are only for interfacing with those foreign systems. They shouldn't be used for day-to-day operations.
    I'm a writer and I zip all of my text and photos together for each article when they're published, but sometimes need to refer back. Sounds like QuickLook/BetterZip just might solve my problem.
    Don't forget Spotlight. While it is a bit of a hassle to update a zip file, you can search your computer (and any zip files therein) very quickly and easily for any data.

  • Locating a Text File with spotlight??

    With recent Updates of OS X, Spotlight simply finds the File but no way to tell where it is.  Have tried everything I can think of; but, so far, the only way I have found is to Duplicate and then Move that to the Desktop fromwhich I can then place it where I want it.
    the loss of the Save as availability after the initial Save is irksome..
    I have little faith in the apple seeds who make these changes, but   .. this seems pretty far out and surely others have the problem, too.
    appreciate,
    Ed

    Hold down command and click the file in Spotlight's list.
    You can view where it is by holding down cmd+opt while hovering over it.
    Also, if you have it open, cmd-click or right-click on the title and it will drop down the path to the file.
    To get to Save As, hold down the option key, or export, or duplicate.

  • Search in external files with Oracke DB?

    Is it possible to use Oracle DB to search in external files (Excel and Word)?
    If yes, does it work in version 7 and 8 also?
    Per Magne

    Is it possible to use Oracle DB to search in external files (Excel and Word)?
    If yes, does it work in version 7 and 8 also?
    Per Magne Yes it is possible. The name for this feature is different in each version and I recommend to use 8.1.7 or 9i and you can use a FILE_DATASTORE.
    Oracle is using a third party apllication (INSO-Filter) to covert excel,word,... to html and index these.
    7/8 context option (or cartridge)
    8i Intermedia Text
    9i Oracle Text
    For further in see the documention here on technet.
    Thomas

  • Searching Leopard Mail content with Spotlight BROKEN

    I've read plenty of problems with this but I've not discovered any solutions. I desperately need to get my search content of mail back online as this has been a very important tool for me. I have thousands of emails that I access regularly using this feature, and at one time I thought that haaving them backed up was my main concern. I never imagined that this VITAL tool would break after installing Leopard, which is wonderful and which I love very much. Has anyone heard of a quick fix yet for this problem? I need this fixed today, ... thank you for any help.
    David

    My solutions thus far to bypass my broken Spotlight issue has been to copy my old Sent Mail folders which were not being recognized by spotlight (and which were several gigs in size) into a special mail folder at my main hard drive level. Then I told Spotlight preferences to ignore the folder. Then I un-excluded it from the Spotlight list (something I had done before inside the Library to no avail). And, wa-la, the email content in those folders was being searched. It is not the best situation, as I would like to use the Spotlight function INSIDE mail. But for now, it helps me get by. Don't know if that helps anyone ...
    I do notice my Mail Spotlight is paying attention to all new mail since upgrading to Leopard. It's the old mail that is being ignored, sadly.

  • Search inside Keynote files

    I have a series of Keynote, and I am trying to search for some text within them. However, Spotlight does not appear to search the text of the files. Is there any add-on or fix for this? Spotlight does search the text of PowerPoint files, so it must be able to search Keynote files, right

    There are two things you could try:
    1. Force a re-index of the folder containing the files; you do this by adding the folder to the Privacy tab in the Spotlight pane of System Preferences, wait a minute and then remove it. You might launch Activity Monitor, make sure All Processes are showing, arrange by name and high-light the "mdimport" that belongs to "unknown"--then when you delete the folder from the Privacy list see if the process kicks in and starts using the CPU.
    2. You could always download EasyFind and use it to do a brute force search on file contents:
    http://www.devon-technologies.com/products/freeware/
    A content search can take awhile, since EasyFind doesn't use an index, so you'll want to make sure you only search the folder the files are in.
    Francine
    Francine
    Schwieder

  • PGN files with Spotlight

    PGN (Portable Game Notation) is a text format used to store chess games. The content is just plain text, is there a way to get spotlight to index these files?
    Thanks!

    Offhand (or onhand, for that matter) I can't see why the contents aren't being searched - I assume you have "Contents" selected in the Search bar of the search window. Contents are automatically indexed - you can't have only a file name indexed, it's not a separate procedure - so this is a puzzle.
    Are these files found when you search for them by name or Kind? (Just to check that they've been indexed.)
    I'm very puzzled, and intrigued. If you'd like to send me some of the files in question, I'd be happy to look into this more deeply on my end. You can send them to 33books (at) 33thingsbooks followed by dot-com. (Isn't it ridiculous to have to describe it that way to avoid some bot collecting the address for spam?)
    sharon

  • When I find a file with spotlight how can I find out where it is?

    I need to know the directory path to it.
    In case it matters I'm using Lion on an iMac.

    Mac 101: Spotlight does't go into it, but as far back as I can remember Snow Leopard, Leopard and maybe even Tiger had a pop-up name and path feature.
    Sorry for not getting back sooner, it took me a couple of tries to capture the pop-up because it kept re-hiding, plus I'm working on moving the desks and Macs in my office to make room for my new Mid 2010 Mac Mini.

  • "Search in Files" inside .ini files

    I use the site search and search in file features in Dreamweaver quite often but I just discovered that if I have a folder full of .ini files and I need to search globally inside those files Dreamweaver returns no results.
    Apparently, DW is unable to search inside files other than HTML, PHP, CSS, JS, etc. But it won't search in .ini files or any weird (for DW) file extensions.
    I once was able to set up my DW to look inside PHTML files (Used by Magento) as well as applying code coloring to them as it would on PHP files.
    I suspect this is a similar process but I wanted to make sure I was not seeing things. Is DW really that dense that will not search inside a file with an extension it doesn't know?
    By the way, I did add .ini to the recognizable files in preferences, but obviously that's not enough to have DW search inside them.
    OFF TOPIC COMMENT
    Another weird thing I just noticed is that the "asset" and other modules will only work in WYSIWYG view. Meaning that if I save a color in my assets I cannot use it to insert it in a CSS file. Not even in code view. I have to be in the visual editor for it to work, but then it's useless to me.
    Incidentally, some time ago I found that the visual editor in DW is actually very useful when working with dynamic websites like Drupal or wordpress. Especially when dealing with very large pages with lots of CSS files.
    However, no one IO know would or should build their sites in the visual editor. It's simly a bad way to work. Why would adobe limit the use of the "assets" pane (and the "History pane too now that I remember)  to the visual editor is beyond me in this day and age.
    I do a lot of tasks where it would be greast to copy a procedure like a substiotution and have DW repeat the same procedure on other pages or similar code snippets. Yet, it won't alow me.
    I love Dreamweaver and I am actually writing a book on how to use it with the likes of wordpress, drupal, etc. It cuts dowen development and design time by less than a third. If those things worked everywhere instead of just in the visual editor it would cut down even more on the time it ntakes to design dynamic website templates.
    Sorry about the rant.
    Thank you for any help.

    Hi David, I too have worked closely on a lot of software projects and I am well aware of the limitations. In fact, that's one of the reasons I lioke to work on open source projects because of the vast talent pool they can utilize. Private companies, no matter how big, neet to triage new development according to their resources.
    By the way, adding the .ini files to the extension.txt files in Dreamweaver is pretty easy. Since code coloring is not an issue that's really the only change I need to make. When I integrated the PHTML file extension for Magento I had to make a lot more changes (still manageable though).
    One of your comments, about DW keeping its legacy features in a changing web development world, made me think that it may be time for Adobe to spawn a different IDE or start thinking about a more modular approach to the application.
    I am writing a book on Dreamweaver integration for Open Source web scripts and when talking to other open source developers, one thing that comes up often is that Dreamweaver is a "bloated" program  (this is not my complaint, by the way).
    Part of the issue is that it needs to keep a lot of quasi-obsolete features so that long time users won't abandon the platform. Which featrures are obsolete is really up to each user. For me the WYSIWYG view is certainly not something I would use to design web sites, but should Adobe get rid of it,  it would absolutely destroy my workflow since I use it to rapidly target HTML, CSS and even Core PHP code in the template and the file system of the scripts I work with.
    The new "Live view" in CS4 was a welcome addition, especially since the basic page rendering in DW leaves a lot to be desired (Incidentally Microsnot "Expression" page rendering is a lot better, making the live view feature less exceptional except when troubleshooting JS based effects).
    Anyway, that said, DW is an extensible program and there are a lot of thrid party utilities written for Dreamweaver. Couldn't the Adobe team use this extensibility to make improvements to the interface and even use it to add or subctract features from the main application?
    I think they are mising an opportunity here to capture a wider audience. DW could ship with a minimal set of features and the team could choose to release their own add-ons so that users could build their own application.
    I think that approach would silence a lot of critics, since the basic app would now be a lot slimmer, while still giving power and legacy users the features they need a-la-carte.
    I am actually hioping that once my book comes out (if it ever does: the publishing world moves at a snail's pace) it may give the DW team a new perspective on how to use Dreamweaver in a modern web development enviroment, but honestly my biggest hope is for one of the current open source projects like Eclipse to look at my development system and maybe add some Dreamweaver-like features so that finally there would be a real open source alternative to Dreamweaver. In turn, I believe that will make DW move a bit more quickly in adding new features and shedding the obsolete ones.
    Anyway, thank you again for the links, I did submit my suggestions. I am not holding my breath but we'll see.
    Take care

  • Getting Spotlight to look inside Word files

    Hi,
    I'm trying to get Spotlight to search the contents of Word files on one of my machines running Tiger (10.4.11). It works fine on one machine (fresh install of Tiger), but the one I want it to work on doesn't return any Word files on the same search. I've looked in system.log for error messages, but don't see any.
    How do I get Spotlight to search inside Word files on a machine running Tiger that was upgraded from Panther to Tiger?
    Also, is there any way to customize Spotlight to tell it to search just Word files in a given directory tree?
    Thanks for any tips or ideas!
    Ed

    Hi BDAqua,
    I looked into my problem more closely, comparing a typical search for a string that's only inside a specific Word file on two different G4s, both running the same version of Tiger and Spotlight. One machine was fine, returning the one and only file that had the string in the contents of the Word file. The same search on the problem machine returned other files in the search results, but not the one expected.
    Turning to the issue of permissions, I note for others who may read this, that a full, clean install of Tiger on a new disc will, by default, result in each $USER belonging to a group with the name $USER. Whereas an upgrade install of Tiger on a machine that, prior to the upgrade, was running either Jaguar or Panther, will result in each $USER belonging to a group called "staff". This was the default setup on earlier versions of Darwin that has since changed under Tiger.
    I changed the group from $USER to staff for my test Word file on both machines. No changes. Spotlight doesn't seem to mind, as I expected, the change of group from $USER to staff.
    Then, based on your comment about Spotless, I downloaded and installed Spotless. Again no change. BUT, I started thinking about the indexing of files that Spotlight relies upon.
    I then ran across Main Menu which allowed me to force a re-indexing of Spotlight. That did it! My test search then worked fine on the problem machine.
    Thanks again for your help and getting me to think thru the problem.
    Ed

  • How do I search for just a folder with Spotlight

    How do I search for a folder with Spotlight, not a file?  Spotlight is a great tool for finding a file, but often I just want to locat a folder.
    When I find a file, how to I see the path to this file?
    These are probably obvious question for longtime Mac users, but I come from the Windows world.

    Activate the Finder's window. Put the folder name in the search field in the Finder's toolbar. Enter COMMAND-F which should change the Finder's window and give a toolbar above the column headers:
    If you click on the dropdown menu with "Any" you will see this:
    Select the "Folder" entry.

  • How to search inside files of serialized objects without load then?

    Hi,
    I have many files and the content is default serialized objects, and I need to make a search in these files, and just load the files that match a search criteria, exists any tool or framework that can search inside these files in binary form, iow without load one by one and reflect to see if the criteria matches?
    for example the search criteria can be: *"ClassName.attribute = 2"* and the search engine will search the binary format and just returns what files match that search criteria.
    thanks for any tip or help

    I dont know if there is a API for this but even if you have one it will still take almost the same time to do the searching because it will still have to read all the files completely.
    Why not move to a database.

  • FCP searching for a file issue?

    Okay, every time I open any project with FCP 6.0.2 it keeps looking for a file from a completely different project that I haven't opened or used for 8 months (this file has NO relation to the current project). What happens is a little dialog saying searching for the file, with a "Stop" button, then if you hit stop or it of course does not find the file, the dialog comes up asking to search or cancel. Well I hit cancel, then the project continues to open, then it comes up a bunch more times and I just keep hitting cancel until the project is completely open and I can then edit it. Any ideas short of a full FCP removal and reinstall to get rid of that? I've tried deleting caches, preferences, etc to no avail.

    The message you are seeing is not from Final Cut; it is from QuickTime. Final Cut is asking QuickTime to validate the disk file for one of the project clips, and the clip appears damaged.
    Note the name of the file that QuickTime (inside Final Cut) is complaining about. If you reimport that file, the problem will go away (most of the time).
    If this is happening for 15 or 20 files, it's a major pain the neck, I know. I have never heard an explanation of what causes this. (Is it Final Cut munging the files? Is it QuickTime?)

Maybe you are looking for