|
|
For any source file
So you can use mdls to find out the spotlight "type" of a file. Here's what I did for a python file:
For any source file
THe trouble with hacking a the Source Code importer to get it to index python scripts is Apple never necessarily coded the importer to handle python scripts.
It might work. It might not. It might work with PHP because PHP is closer to C/C++/ObjC than Python is. It might just work. It might crash mdimporter every time it is run. Notice the mights. Apple very likely did not add python to the list of support UTTypes of their source code importer because they didn't design it to work with Python. Or perhaps they did. But unless you work for Apple YOU don't know. HAcking system components like this is dumb. And with that mini-rant out of the way ;-) I've written a Python Metadata Importer myself. This importer does more than a plain text import - it actually parses the python files and scans for function names, class names and a bunch of other metadata... HEre's the link: http://toxicsoftware.com/blog/index.php/weblog/python_metadata_importer_released_for_tiger/
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.59 seconds |
|