On Jan 21, 2006, at 2:01 AM, Nicholas Matsakis wrote:
> http://www.apple.com/downloads/macosx/spotlight/
> pythonmetadataimporter.html
>
> I really dig the Spotlight Metadata Importer for python, but it
> only works
> for files ending in ".py" which excludes various shell scripts I have
> writt
On May 27, 2005, at 01:39, Ronald Oussoren wrote:
> On 26-mei-2005, at 16:54, Jonathan Wight wrote:
>
>> After adding Gideon's suggestion for CRLF ending file. My importer is
>> failing on only 8 files out of 3084 files.
>>
>> All the failures are with Py
:
> On Thu, May 26, 2005 at 12:13:02AM -0400, Jonathan Wight wrote:
>
>
>> Just to let everyone know that my Python Metadata Importer plug-in
>> was released the other day.
>>
>> http://toxicsoftware.com/blog/index.php/weblog/
>> python_metadata_importer_1
Yeah I screwed up with the code that scans functions.
There's a new version online now that fixes that.
Jon.
On May 26, 2005, at 09:37, Nicholas Riley wrote:
> On Thu, May 26, 2005 at 12:13:02AM -0400, Jonathan Wight wrote:
>
>
>
>> Just to let everyone know
On May 26, 2005, at 00:38, Bob Ippolito wrote:
> On May 25, 2005, at 9:13 PM, Jonathan Wight wrote:
>
>
>> Just to let everyone know that my Python Metadata Importer plug-in
>> was released the other day.
>>
>> http://toxics
Just to let everyone know that my Python Metadata Importer plug-in
was released the other day.
http://toxicsoftware.com/blog/index.php/weblog/
python_metadata_importer_101_released/
I decided to change the license to BSD after Bob and co brought up
some good points, so now anyone can us
On May 20, 2005, at 03:00, Bob Ippolito wrote:
>> Does it allow the _creation_ of custom metadata tags on files? Or are
>> we restricted to the ones defined by Apple?
>>
>>
>
> Metadata importers can define whatever key/value pairs they want to.
> Only certain keys are used intelligently by Appl
On May 19, 2005, at 13:48, Bob Ippolito wrote:
>
> On May 19, 2005, at 1:32 PM, Ronald Oussoren wrote:
>
>
>> On 19-mei-2005, at 17:49, Jonathan Wight wrote:
>>
>>
>>
>>> And again with long URLs fixed ;-)
>>>
>>> I released the co
On May 19, 2005, at 13:32, Ronald Oussoren wrote:
> On 19-mei-2005, at 17:49, Jonathan Wight wrote:
>
>
>> And again with long URLs fixed ;-)
>>
>> I released the code under the GPL
>>
>>
> Why GPL?
>
Why not?
Suggest something different.
>>
And again with long URLs fixed ;-)
I released the code under the GPL - with minor modifications to the
code I think anyone should be able to create Spotlight Importers
using python (without depending on PyObjC)...
-
Version 0.9 (everything done exception final documentation tidy-up)
is onlin
Version 0.9 (everything done exception final documentation tidy-up)
is online at:
http://svn.toxicsoftware.com/svn/toxic_public/trunk/Freeware/Python%
20Metadata%20Importer/Releases/Python%20Metadata%20Importer.dmg
Source is available from:
http://svn.toxicsoftware.com/svn/toxic_public/trunk/
Jon.
On May 11, 2005, at 02:28, Jonathan Wight wrote:
> OK. The first version is online at:
>
> http://toxicsoftware.com/_private/Python%20Metadata%20Importer.pkg.zip
>
> The installer installs the mdimporter to /Library/Spotlight/ and then
> calls mdimport -r to force Spot
For me it worked:
"org_python_functions" = ("get_bits", "set_lsb", "get_lsb",
"value_from_bits");
But then I just made a new BBEdit Bits.py file and pasted your code
into it.
The importer does seem to be crashing, but I'm not sure whether the
python or the ObjC is dying. Is there a cr
On May 11, 2005, at 10:51, David Reed wrote:
> Also, how do you uninstall your plugin?
Remove "Python Metadata Importer.mdimporter" from /Library/Spotlight
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/
On May 11, 2005, at 11:16, Schollnick, Benjamin wrote:
>>> had time to index my drive by now. It does seem to have indexed
>>> files that are part of python packages but it hasn't index Python
>>> files in my home directory and subdirectories. Is it
>>>
>> skipping these
>>
>>> on purpose or does
It is entirely possible I screwed something up and that it doesn't
work on anything other than my Powerbook ;-)
However:
As the last part of the install process the installer kicks off a
script to reindex the Python files on the hard drive. This could be
failing. To manually reindex runt th
OK. The first version is online at:
http://toxicsoftware.com/_private/Python%20Metadata%20Importer.pkg.zip
The installer installs the mdimporter to /Library/Spotlight/ and then
calls mdimport -r to force Spotlight to reindex all Python files.
You _may_ need Xcode installed to have this work su
py').read()
ast = parser.suite(theSource)
tup = ast.totuple()
print find(tup, symbol.classdef)
print find(tup, symbol.funcdef)
On May 10, 2005, at 21:52, Bob Ippolito wrote:
>
> On May 10, 2005, at 8:52 PM, Jonathan Wight wrote:
>
>
>> I've made a first pass at it and have a
information from Python script files?
Jon.
On May 10, 2005, at 16:58, Jonathan Wight wrote:
> I'll have a play with it later today. I don't think it should be too
> difficult at all.
>
> Jon.
>
> On May 10, 2005, at 16:22, David Reed wrote:
>
>
>
&
I'll have a play with it later today. I don't think it should be too
difficult at all.
Jon.
On May 10, 2005, at 16:22, David Reed wrote:
> I don't think I'd want all variables/symbols to be indexed, but I
> think function and class names might be nice and adding the
> documentation strin
On May 10, 2005, at 14:49, David Reed wrote:
> I've looked at the example at:
>
> http://developer.apple.com/documentation/Carbon/Conceptual/
> MDImporters/Concepts/WritingAnImp.html#//apple_ref/doc/uid/
> TP40001275-CJBEJBHH
>
> I don't yet understand what NSDictionary tempDict contains after i
It's certainly a good idea.
Writing a Spotlight plug-in is extremely straight forward - just fire
up Xcode 2 and create a new "Metadata Importer" project. You just
have one function that you need to provide:
Boolean GetMetadataForFile(void* thisInterface,
CFMutableDictionaryRe
22 matches
Mail list logo