Re: [PD] Spotlight Importer for OS X
On Jun 27, 2008, at 11:23 PM, Luke Iannini wrote: > On Fri, Jun 27, 2008 at 3:12 AM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> On Jun 27, 2008, at 2:23 AM, Luke Iannini wrote: >> >>> On Fri, Jun 20, 2008 at 12:11 PM, Hans-Christoph Steiner >>> <[EMAIL PROTECTED]> wrote: On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote: > On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: >> >>> On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner >>> <[EMAIL PROTECTED]> wrote: Does this work at all on 10.4/Tiger? >>> Yes, it's configured by default to work with both 10.4 and 10.5. >> >> Any idea whether it would cause problems on 10.3? That's not a >> make- >> or-break thing, but it would be nice if it could still work on >> 10.3. >> As for including the Info.plist changes in v0-40, it would need >> to be >> throughly tested before including it. Currently, there are >> only a >> couple outstanding bugs that need to be fixed for this release >> (AFAIK), so I am really hesitant to include something totally >> new. >> > According to this http://developer.apple.com/qa/qa2005/ > qa1406.html the > public.plain-text UTI we're using existed in 10.3. Also, this > seems > to be a transitional document for 10.3>10.4, and doesn't > include any > callouts except: "Note: UTIs are available in Mac OS X v10.3 > Panther > and later. Mac OS X v10.4 Tiger added many new types and > integrated > support throughout the operating system." > > So I think it won't be a problem for the keys in the plist, and > in the > future, 10.3 should just ignore the > Library/Spotlight/PureData.mdimporter file just as it would > ignore any > other file it didn't recognize in the bundle. Ok, sounds like it is worth trying to add the Info.plist UTI stuff to this release. Feel free to add it now to branches/pd-extended/ v0-40, but please test it. .hc >>> Yo, sorry I didn't read that closely and thought you were >>> comfortable >>> with adding the whole kit n' kaboodle, sorry about that. >> >> It just seems to be a big unknown, and adding a big unknown in the >> last days before releasing has bitten me before. >> >> Which reminds me: Could you give a specific example of what the >> Spotlight Importer does? I don't quite get it. > Sure - > > Spotlight searches not only filenames but file contents for your > search terms, so it would pull up "Theory and Techniques of Electronic > Music"'s PDF if you searched for "Fourier", for example (since a PDF > Spotlight importer is built in to OS X). So, with the Pd file > importer, it will pull up not only "I01.Fourier.analysis.pd", but > "I02.Hann.window.pd", "I03.resynthesis.pd", etc. as well, since they > contain the word "Fourier" in their comments.* > > It also works with objects, so you can find every patch containing > "fiddle~". > > And, as I mentioned, you can use it to implement, e.g. a "TODO/FIXME" > tracker by creating a smart folder (aka saved search) that searches > for Pd files containing those words. Thanks, that was very helpful. It makes sense to me. > *It will only find files if they're outside of the Pd bundle, so I > guess that's a drawback (but I'll see if I can find a way to force it > to search within the bundle) They just added these bundle restrictions in 10.3 or maybe 10.4. They are a pain. I have seen some apps that allow you to use an OpenPanel to freely navigate into the .app bundle. I have tried to find how to do that for Pd, but no luck. Maybe you'll have better luck... > > Cheers > Luke > > (and by the way, this is a common practice lest you think I'm doing > something nutty : ); Apple includes source code importers for c, > obj-c, ruby, python etc when you install XCode, and most OS X apps > with a custom file format include a Spotlight importer. > > The next step would be to add real Quick Look support to show a > preview of the patch's appearance as the icon and QL view (right now > it just shows the plaintext version of the pd file). Anyone have any > insight on that? Perhaps just a separate Tcl generator would work... That sounds like a big project, but would be very cool. Perhaps you could tap into Pd's print support, it outputs a .ps Postscript file. .hc > >> >> >> .hc >> >>> As for building it, how do you build it yourself? That's usually a good starting point for adding it to the auto-build. If it is an xcode project, you can use the command line tool xcodebuild. >>> Yo, >>> I just built in with the build button : ). I like buttons... >>> So yea, I have the project. Looks like it builds aok with >>>
Re: [PD] Spotlight Importer for OS X
On Fri, Jun 27, 2008 at 3:12 AM, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: > > On Jun 27, 2008, at 2:23 AM, Luke Iannini wrote: > >> On Fri, Jun 20, 2008 at 12:11 PM, Hans-Christoph Steiner >> <[EMAIL PROTECTED]> wrote: >>> >>> On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote: >>> On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: > > On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: > >> On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner >> <[EMAIL PROTECTED]> wrote: >>> >>> Does this work at all on 10.4/Tiger? >>> >> Yes, it's configured by default to work with both 10.4 and 10.5. > > Any idea whether it would cause problems on 10.3? That's not a > make- > or-break thing, but it would be nice if it could still work on > 10.3. > As for including the Info.plist changes in v0-40, it would need > to be > throughly tested before including it. Currently, there are only a > couple outstanding bugs that need to be fixed for this release > (AFAIK), so I am really hesitant to include something totally new. > According to this http://developer.apple.com/qa/qa2005/ qa1406.html the public.plain-text UTI we're using existed in 10.3. Also, this seems to be a transitional document for 10.3>10.4, and doesn't include any callouts except: "Note: UTIs are available in Mac OS X v10.3 Panther and later. Mac OS X v10.4 Tiger added many new types and integrated support throughout the operating system." So I think it won't be a problem for the keys in the plist, and in the future, 10.3 should just ignore the Library/Spotlight/PureData.mdimporter file just as it would ignore any other file it didn't recognize in the bundle. >>> >>> >>> Ok, sounds like it is worth trying to add the Info.plist UTI stuff to >>> this release. Feel free to add it now to branches/pd-extended/v0-40, >>> but please test it. >>> >>> .hc >>> >> Yo, sorry I didn't read that closely and thought you were comfortable >> with adding the whole kit n' kaboodle, sorry about that. > > It just seems to be a big unknown, and adding a big unknown in the > last days before releasing has bitten me before. > > Which reminds me: Could you give a specific example of what the > Spotlight Importer does? I don't quite get it. Sure - Spotlight searches not only filenames but file contents for your search terms, so it would pull up "Theory and Techniques of Electronic Music"'s PDF if you searched for "Fourier", for example (since a PDF Spotlight importer is built in to OS X). So, with the Pd file importer, it will pull up not only "I01.Fourier.analysis.pd", but "I02.Hann.window.pd", "I03.resynthesis.pd", etc. as well, since they contain the word "Fourier" in their comments.* It also works with objects, so you can find every patch containing "fiddle~". And, as I mentioned, you can use it to implement, e.g. a "TODO/FIXME" tracker by creating a smart folder (aka saved search) that searches for Pd files containing those words. *It will only find files if they're outside of the Pd bundle, so I guess that's a drawback (but I'll see if I can find a way to force it to search within the bundle) Cheers Luke (and by the way, this is a common practice lest you think I'm doing something nutty : ); Apple includes source code importers for c, obj-c, ruby, python etc when you install XCode, and most OS X apps with a custom file format include a Spotlight importer. The next step would be to add real Quick Look support to show a preview of the patch's appearance as the icon and QL view (right now it just shows the plaintext version of the pd file). Anyone have any insight on that? Perhaps just a separate Tcl generator would work... > > > .hc > >> >>> >>> >>> As for building it, how do you build it yourself? That's >>> usually a >>> good starting point for adding it to the auto-build. If it is an >>> xcode project, you can use the command line tool xcodebuild. >>> >> Yo, >> I just built in with the build button : ). I like buttons... >> So yea, I have the project. Looks like it builds aok with >> xcodebuild, >> thanks for the tip. Where should I put the project folder? > > Good question. The first place I thought of is packages/darwin_app > since it is only for things related to the Pd.app for Mac OS X. > Maybe: > > packages/darwin_app/spotlight_importer > > Then it probalby makes sense to make a separate > 'spotlight_importer:' > target in packages/darwin_app/Makefile to build and install it. > > .hc Will do. Cheers Luke >>> >>> >>> >>> - >>> --- >>> >>> >>> All information should be free. - the hacker ethic >>> >>> >>> >>> >>> >>> ___ >>> Pd-
Re: [PD] Spotlight Importer for OS X
On Jun 27, 2008, at 2:23 AM, Luke Iannini wrote: > On Fri, Jun 20, 2008 at 12:11 PM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote: >> >>> On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner >>> <[EMAIL PROTECTED]> wrote: On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: > On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> Does this work at all on 10.4/Tiger? >> > Yes, it's configured by default to work with both 10.4 and 10.5. Any idea whether it would cause problems on 10.3? That's not a make- or-break thing, but it would be nice if it could still work on 10.3. As for including the Info.plist changes in v0-40, it would need to be throughly tested before including it. Currently, there are only a couple outstanding bugs that need to be fixed for this release (AFAIK), so I am really hesitant to include something totally new. >>> According to this http://developer.apple.com/qa/qa2005/ >>> qa1406.html the >>> public.plain-text UTI we're using existed in 10.3. Also, this seems >>> to be a transitional document for 10.3>10.4, and doesn't include any >>> callouts except: "Note: UTIs are available in Mac OS X v10.3 >>> Panther >>> and later. Mac OS X v10.4 Tiger added many new types and integrated >>> support throughout the operating system." >>> >>> So I think it won't be a problem for the keys in the plist, and >>> in the >>> future, 10.3 should just ignore the >>> Library/Spotlight/PureData.mdimporter file just as it would >>> ignore any >>> other file it didn't recognize in the bundle. >> >> >> Ok, sounds like it is worth trying to add the Info.plist UTI stuff to >> this release. Feel free to add it now to branches/pd-extended/v0-40, >> but please test it. >> >> .hc >> > Yo, sorry I didn't read that closely and thought you were comfortable > with adding the whole kit n' kaboodle, sorry about that. It just seems to be a big unknown, and adding a big unknown in the last days before releasing has bitten me before. Which reminds me: Could you give a specific example of what the Spotlight Importer does? I don't quite get it. .hc > >> >> >> As for building it, how do you build it yourself? That's >> usually a >> good starting point for adding it to the auto-build. If it is an >> xcode project, you can use the command line tool xcodebuild. >> > Yo, > I just built in with the build button : ). I like buttons... > So yea, I have the project. Looks like it builds aok with > xcodebuild, > thanks for the tip. Where should I put the project folder? Good question. The first place I thought of is packages/darwin_app since it is only for things related to the Pd.app for Mac OS X. Maybe: packages/darwin_app/spotlight_importer Then it probalby makes sense to make a separate 'spotlight_importer:' target in packages/darwin_app/Makefile to build and install it. .hc >>> >>> Will do. >>> Cheers >>> Luke >> >> >> >> - >> --- >> >> >> All information should be free. - the hacker ethic >> >> >> >> >> >> ___ >> Pd-list@iem.at mailing list >> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ >> listinfo/pd-list >> > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2", by Mohja Kahf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
On Fri, Jun 20, 2008 at 12:11 PM, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: > > On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote: > >> On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner >> <[EMAIL PROTECTED]> wrote: >>> >>> On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: >>> On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: > > Does this work at all on 10.4/Tiger? > Yes, it's configured by default to work with both 10.4 and 10.5. >>> >>> Any idea whether it would cause problems on 10.3? That's not a make- >>> or-break thing, but it would be nice if it could still work on 10.3. >>> As for including the Info.plist changes in v0-40, it would need to be >>> throughly tested before including it. Currently, there are only a >>> couple outstanding bugs that need to be fixed for this release >>> (AFAIK), so I am really hesitant to include something totally new. >>> >> According to this http://developer.apple.com/qa/qa2005/qa1406.html the >> public.plain-text UTI we're using existed in 10.3. Also, this seems >> to be a transitional document for 10.3>10.4, and doesn't include any >> callouts except: "Note: UTIs are available in Mac OS X v10.3 Panther >> and later. Mac OS X v10.4 Tiger added many new types and integrated >> support throughout the operating system." >> >> So I think it won't be a problem for the keys in the plist, and in the >> future, 10.3 should just ignore the >> Library/Spotlight/PureData.mdimporter file just as it would ignore any >> other file it didn't recognize in the bundle. > > > Ok, sounds like it is worth trying to add the Info.plist UTI stuff to > this release. Feel free to add it now to branches/pd-extended/v0-40, > but please test it. > > .hc > Yo, sorry I didn't read that closely and thought you were comfortable with adding the whole kit n' kaboodle, sorry about that. > > > As for building it, how do you build it yourself? That's usually a > good starting point for adding it to the auto-build. If it is an > xcode project, you can use the command line tool xcodebuild. > Yo, I just built in with the build button : ). I like buttons... So yea, I have the project. Looks like it builds aok with xcodebuild, thanks for the tip. Where should I put the project folder? >>> >>> Good question. The first place I thought of is packages/darwin_app >>> since it is only for things related to the Pd.app for Mac OS X. >>> Maybe: >>> >>> packages/darwin_app/spotlight_importer >>> >>> Then it probalby makes sense to make a separate 'spotlight_importer:' >>> target in packages/darwin_app/Makefile to build and install it. >>> >>> .hc >> >> Will do. >> Cheers >> Luke > > > > > > > All information should be free. - the hacker ethic > > > > > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote: > On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: >> >>> On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner >>> <[EMAIL PROTECTED]> wrote: Does this work at all on 10.4/Tiger? >>> Yes, it's configured by default to work with both 10.4 and 10.5. >> >> Any idea whether it would cause problems on 10.3? That's not a make- >> or-break thing, but it would be nice if it could still work on 10.3. >> As for including the Info.plist changes in v0-40, it would need to be >> throughly tested before including it. Currently, there are only a >> couple outstanding bugs that need to be fixed for this release >> (AFAIK), so I am really hesitant to include something totally new. >> > According to this http://developer.apple.com/qa/qa2005/qa1406.html the > public.plain-text UTI we're using existed in 10.3. Also, this seems > to be a transitional document for 10.3>10.4, and doesn't include any > callouts except: "Note: UTIs are available in Mac OS X v10.3 Panther > and later. Mac OS X v10.4 Tiger added many new types and integrated > support throughout the operating system." > > So I think it won't be a problem for the keys in the plist, and in the > future, 10.3 should just ignore the > Library/Spotlight/PureData.mdimporter file just as it would ignore any > other file it didn't recognize in the bundle. Ok, sounds like it is worth trying to add the Info.plist UTI stuff to this release. Feel free to add it now to branches/pd-extended/v0-40, but please test it. .hc As for building it, how do you build it yourself? That's usually a good starting point for adding it to the auto-build. If it is an xcode project, you can use the command line tool xcodebuild. >>> Yo, >>> I just built in with the build button : ). I like buttons... >>> So yea, I have the project. Looks like it builds aok with >>> xcodebuild, >>> thanks for the tip. Where should I put the project folder? >> >> Good question. The first place I thought of is packages/darwin_app >> since it is only for things related to the Pd.app for Mac OS X. >> Maybe: >> >> packages/darwin_app/spotlight_importer >> >> Then it probalby makes sense to make a separate 'spotlight_importer:' >> target in packages/darwin_app/Makefile to build and install it. >> >> .hc > > Will do. > Cheers > Luke All information should be free. - the hacker ethic ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: > > On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: > >> On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner >> <[EMAIL PROTECTED]> wrote: >>> >>> Does this work at all on 10.4/Tiger? >>> >> Yes, it's configured by default to work with both 10.4 and 10.5. > > Any idea whether it would cause problems on 10.3? That's not a make- > or-break thing, but it would be nice if it could still work on 10.3. > As for including the Info.plist changes in v0-40, it would need to be > throughly tested before including it. Currently, there are only a > couple outstanding bugs that need to be fixed for this release > (AFAIK), so I am really hesitant to include something totally new. > According to this http://developer.apple.com/qa/qa2005/qa1406.html the public.plain-text UTI we're using existed in 10.3. Also, this seems to be a transitional document for 10.3>10.4, and doesn't include any callouts except: "Note: UTIs are available in Mac OS X v10.3 Panther and later. Mac OS X v10.4 Tiger added many new types and integrated support throughout the operating system." So I think it won't be a problem for the keys in the plist, and in the future, 10.3 should just ignore the Library/Spotlight/PureData.mdimporter file just as it would ignore any other file it didn't recognize in the bundle. > >>> As for building it, how do you build it yourself? That's usually a >>> good starting point for adding it to the auto-build. If it is an >>> xcode project, you can use the command line tool xcodebuild. >>> >> Yo, >> I just built in with the build button : ). I like buttons... >> So yea, I have the project. Looks like it builds aok with xcodebuild, >> thanks for the tip. Where should I put the project folder? > > Good question. The first place I thought of is packages/darwin_app > since it is only for things related to the Pd.app for Mac OS X. Maybe: > > packages/darwin_app/spotlight_importer > > Then it probalby makes sense to make a separate 'spotlight_importer:' > target in packages/darwin_app/Makefile to build and install it. > > .hc Will do. Cheers Luke ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote: > On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner > <[EMAIL PROTECTED]> wrote: >> >> Does this work at all on 10.4/Tiger? >> > Yes, it's configured by default to work with both 10.4 and 10.5. Any idea whether it would cause problems on 10.3? That's not a make- or-break thing, but it would be nice if it could still work on 10.3. As for including the Info.plist changes in v0-40, it would need to be throughly tested before including it. Currently, there are only a couple outstanding bugs that need to be fixed for this release (AFAIK), so I am really hesitant to include something totally new. >> As for building it, how do you build it yourself? That's usually a >> good starting point for adding it to the auto-build. If it is an >> xcode project, you can use the command line tool xcodebuild. >> > Yo, > I just built in with the build button : ). I like buttons... > So yea, I have the project. Looks like it builds aok with xcodebuild, > thanks for the tip. Where should I put the project folder? Good question. The first place I thought of is packages/darwin_app since it is only for things related to the Pd.app for Mac OS X. Maybe: packages/darwin_app/spotlight_importer Then it probalby makes sense to make a separate 'spotlight_importer:' target in packages/darwin_app/Makefile to build and install it. .hc >> Also, it seems that .pat should have a separate entry, something like >> this: >> >> >>UTTypeConformsTo >>public.plain-text >>UTTypeIdentifier >>org.puredata.max-patch >>UTTypeTagSpecification >> >>public.filename-extension >> >>pat >> >> >> >> > Sure, makes sense. I'll do that > >> .hc >> >> On Jun 19, 2008, at 2:10 PM, Luke Iannini wrote: >> >>> Hi all, >>> Here's a Spotlight importer for Pd (and AFAIK .pat) files. >>> >>> Starting with tonight or tomorrow's autobuild, installing it (just >>> double-click it) will let Spotlight look inside your Pd patches. >>> Also, a beneficial side-effect of a necessary change to Pd- >>> extended's >>> bundle means that Pd-patches are now Quick Look-enabled (don't get >>> /too/ excited, it is only the plaintext representation, but still >>> extremely handy). And after the importer itself gets enveloped by >>> Pd-extended's bundle, it will just work (no installation needed). >>> >>> This version just indexes the entire text. In the future I could >>> add >>> specific metadata keys to correspond to "Pure Data Objects", "Pure >>> Data Messages", "Pure Data Comments", and "Pure Data [declares]", >>> which could then be used to construct complex Spotlight queries >>> (but I >>> just learned enough Obj-C to get this far tonight so give me a >>> while : >>> ) ). >>> >>> Hans, apparently placing it in >>> Pd-extended.app/Contents/Library/Spotlight will make it magically >>> start working the first time Pd is dragged out of its .dmg. I don't >>> have a clue about building this dynamically in the autobuilds, but >>> since it is a Universal Binary and OS X only is it cool to add >>> statically? >>> >>> enjoy >>> Luke >>> >>> (by the way, you'll know you have the right Pd-extended when running >>> "mdls -name kMDItemContentType a-patch.pd" gives >>> "org.puredata.pd-patch" rather than "dyn.ah62d4rv4ge81a3a" or >>> similar) >>> ___ >>> __ >>> __ >>> Pd-list@iem.at mailing list >>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ >>> listinfo/pd-list >> >> >> >> >> - >> --- >> >> >> All mankind is of one author, and is one volume; when one man dies, >> one chapter is not torn out of the book, but translated into a better >> language; and every chapter must be so translated -John Donne >> >> >> >> ___ >> Pd-list@iem.at mailing list >> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ >> listinfo/pd-list >> There is no way to peace, peace is the way. -A.J. Muste ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
(sorry, I mean it's not necessary if we're not including the importer in the bundle of course) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
One more thing I forgot to mention, it's too late to include the spotlight importer into this release, but I did make the Makefile create the Library/Spotlight directory, to make it a bit easier to manually install it. Once we set up the 0.41-extended builds, it can be included there. .hc On Jun 19, 2008, at 2:10 PM, Luke Iannini wrote: > Hi all, > Here's a Spotlight importer for Pd (and AFAIK .pat) files. > > Starting with tonight or tomorrow's autobuild, installing it (just > double-click it) will let Spotlight look inside your Pd patches. > Also, a beneficial side-effect of a necessary change to Pd-extended's > bundle means that Pd-patches are now Quick Look-enabled (don't get > /too/ excited, it is only the plaintext representation, but still > extremely handy). And after the importer itself gets enveloped by > Pd-extended's bundle, it will just work (no installation needed). > > This version just indexes the entire text. In the future I could add > specific metadata keys to correspond to "Pure Data Objects", "Pure > Data Messages", "Pure Data Comments", and "Pure Data [declares]", > which could then be used to construct complex Spotlight queries (but I > just learned enough Obj-C to get this far tonight so give me a while : > ) ). > > Hans, apparently placing it in > Pd-extended.app/Contents/Library/Spotlight will make it magically > start working the first time Pd is dragged out of its .dmg. I don't > have a clue about building this dynamically in the autobuilds, but > since it is a Universal Binary and OS X only is it cool to add > statically? > > enjoy > Luke > > (by the way, you'll know you have the right Pd-extended when running > "mdls -name kMDItemContentType a-patch.pd" gives > "org.puredata.pd-patch" rather than "dyn.ah62d4rv4ge81a3a" or > similar) > _ > __ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list "Free software means you control what your computer does. Non-free software means someone else controls that, and to some extent controls you." - Richard M. Stallman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
Does this work at all on 10.4/Tiger? As for building it, how do you build it yourself? That's usually a good starting point for adding it to the auto-build. If it is an xcode project, you can use the command line tool xcodebuild. Also, it seems that .pat should have a separate entry, something like this: UTTypeConformsTo public.plain-text UTTypeIdentifier org.puredata.max-patch UTTypeTagSpecification public.filename-extension pat .hc On Jun 19, 2008, at 2:10 PM, Luke Iannini wrote: > Hi all, > Here's a Spotlight importer for Pd (and AFAIK .pat) files. > > Starting with tonight or tomorrow's autobuild, installing it (just > double-click it) will let Spotlight look inside your Pd patches. > Also, a beneficial side-effect of a necessary change to Pd-extended's > bundle means that Pd-patches are now Quick Look-enabled (don't get > /too/ excited, it is only the plaintext representation, but still > extremely handy). And after the importer itself gets enveloped by > Pd-extended's bundle, it will just work (no installation needed). > > This version just indexes the entire text. In the future I could add > specific metadata keys to correspond to "Pure Data Objects", "Pure > Data Messages", "Pure Data Comments", and "Pure Data [declares]", > which could then be used to construct complex Spotlight queries (but I > just learned enough Obj-C to get this far tonight so give me a while : > ) ). > > Hans, apparently placing it in > Pd-extended.app/Contents/Library/Spotlight will make it magically > start working the first time Pd is dragged out of its .dmg. I don't > have a clue about building this dynamically in the autobuilds, but > since it is a Universal Binary and OS X only is it cool to add > statically? > > enjoy > Luke > > (by the way, you'll know you have the right Pd-extended when running > "mdls -name kMDItemContentType a-patch.pd" gives > "org.puredata.pd-patch" rather than "dyn.ah62d4rv4ge81a3a" or > similar) > _ > __ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated -John Donne ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
Yo This is awesome!! Thanks for doing this (again) cheers mark --- On Thu, 6/19/08, Luke Iannini <[EMAIL PROTECTED]> wrote: > From: Luke Iannini <[EMAIL PROTECTED]> > Subject: [PD] Spotlight Importer for OS X > To: "pd-liste List" > Date: Thursday, June 19, 2008, 8:10 AM > Hi all, > Here's a Spotlight importer for Pd (and AFAIK .pat) > files. > > Starting with tonight or tomorrow's autobuild, > installing it (just > double-click it) will let Spotlight look inside your Pd > patches. > Also, a beneficial side-effect of a necessary change to > Pd-extended's > bundle means that Pd-patches are now Quick Look-enabled > (don't get > /too/ excited, it is only the plaintext representation, but > still > extremely handy). And after the importer itself gets > enveloped by > Pd-extended's bundle, it will just work (no > installation needed). > > This version just indexes the entire text. In the future I > could add > specific metadata keys to correspond to "Pure Data > Objects", "Pure > Data Messages", "Pure Data Comments", and > "Pure Data [declares]", > which could then be used to construct complex Spotlight > queries (but I > just learned enough Obj-C to get this far tonight so give > me a while : > ) ). > > Hans, apparently placing it in > Pd-extended.app/Contents/Library/Spotlight will make it > magically > start working the first time Pd is dragged out of its .dmg. > I don't > have a clue about building this dynamically in the > autobuilds, but > since it is a Universal Binary and OS X only is it cool to > add > statically? > > enjoy > Luke > > (by the way, you'll know you have the right Pd-extended > when running > "mdls -name kMDItemContentType a-patch.pd" gives > "org.puredata.pd-patch" rather than > "dyn.ah62d4rv4ge81a3a" or > similar)___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Spotlight Importer for OS X
Also - you can force Spotlight to reindex a folder using e.g. "mdimport ~/" if it needs a kick. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list