« REAL Server Plugin 0.… | Home | MBS REALbasic SOAP Ki… »

Textpreview for any file using Spotlight


The plugins 10.0pr9 have a new function built in: folderitem.SpotLightTextContentMBS as string. If you call this function, you basicly run the metadata importer for the given file type and get the text content result. On the first call it builts an internal list of the importers and the document types based on the importes in /Library/Spotlight, /System/Library/Spotlight and ~/Library/Spotlight.
This way you can get a text preview from all kinds of file types:
  • Application Sniffer
    • Application
  • Archives
    • Zip archive
    • CPIO archive
    • BOM-generated compressed CPIO archive
    • PKZip archive
    • gzip tar archive
    • tar archive
  • Audio
    • MP3 audio
    • AIFF-C audio
    • AIFF audio
    • Sound Designer II audio
    • Waveform audio
    • µLaw audio
    • AU audio
    • Apple CoreAudio format
  • Automator
    • Automator Workflow Document
  • Bookmarks Importer
    • Safari bookmark
    • Safari history item
  • iChatImporter
    • Chat transcript
  • CoreMedia
    • QuickTime movie
    • MPEG-4 movie
    • protected MPEG-4 audio
    • protected MPEG-4 movie
    • MPEG-4 audio
    • 3GPP movie
    • 3GPP2 movie
    • MPEG movie
  • FontImporter
    • font
    • TrueType® font
    • PostScript® font
    • TrueType® datafork font
    • PostScript® OpenType® font
    • TrueType® OpenType® font
    • TrueType® collection font
    • font suitcase
    • PostScript® Type 1 outline font
  • iCalImporter
    • ICS File
  • Image
    • Adobe Photoshop document
    • Apple icon image
    • MacPaint image
    • QuickDraw picture
    • QuickTime image
    • Graphics Interchange Format (GIF)
    • OpenEXR image
    • FlashPix image
    • Windows bitmap image
    • Windows icon image
    • Silicon Graphics image
    • TGA image
    • JPEG image
    • JPEG 2000 image
    • Portable Network Graphics image
    • Radiance
    • TIFF image
    • X bitmap image
    • camera raw image
  • iPhoto
    • iPhoto Spotlight Document
  • Mail Importer
    • Mail Message
    • Mail Message Part
  • MIDI
    • MIDI audio
  • PDF
    • Portable Document Format (PDF)
  • PS
    • PostScript
    • Encapsulated PostScript
  • QuartzComposer
    • Quartz Composer compostion
  • Rich Text Sniffer
    • rich text (RTF)
    • HTML text
    • XML text
    • text
    • text
    • rich text with attachments (RTFD)
    • web archive
    • Open Document text
    • Office Open XML word processing document
  • SystemPrefs Importer
    • System Preference pane
  • vCard
    • electronic business card
    • Address Book Group Data
    • Address Book Person Data
  • AppleWorks Importer for Spotlight
    • AppleWorks Document
  • GBSpotlightImporter
    • GarageBand Project
    • Magic GarageBand Template
    • MagicMentor GarageBand Template
  • iWork Importer for Spotlight
    • Numbers document
    • Numbers Template
    • Pages document
    • Pages Template
    • Keynote document
    • Keynote Theme
  • Microsoft Office
    • Microsoft Word 97-2004 document
    • Microsoft Word 97-2004 template
    • Microsoft Word document
    • Microsoft PowerPoint 97-2004 presentation
    • Microsoft PowerPoint 97-2004 template
    • Microsoft PowerPoint 97-2004 slide show
    • Microsoft Excel 97-2004 worksheet
    • Microsoft Excel 97-2004 template
    • Microsoft Excel Workbook
    • Microsoft Excel 97-2004 workspace
    • Microsoft PowerPoint document
    • Microsoft Excel 2007 spreadsheet (macros enabled)
    • Office Open XML word processing document
    • Office Open XML word processing template
    • Office Open XML spreadsheet
    • Office Open XML spreadsheet template
    • Office Open XML presentation
    • Office Open XML presentation template
    • Office Open XML slide show
12 01 10 - 13:33
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.