AppleScript Spotlight Plugin

Copyright 2008 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.  You may obtain a copy
of the License at

http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
License for the specific language governing permissions and limitations under
the License.

-----------------------

This is a spotlight importer for AppleScripts.
It imports the description and the code of an AppleScript to make them easily searchable.

To install the spotlight plugin, please copy it into /Applications/AppleScript/Script Editor/Contents/Library/Spotlight.

If you are wondering why we just don't copy this one into /Library/Spotlight or ~/Library/Spotlight it is due to the fact that on 10.5 the UTIs declared by Spotlight importers don't seem to be recognized unless they are in an application's /Library/Spotlight directory. There isn't a UTI for AppleScript bundle files (.scptd) so we declare one in the importer. If the importer isn't located in an application's /Library/Spotlight directory, you won't be able to import .scptd files.

Radars logged:
6160646 UTIs declared in Spotlight Importers in Library/Spotlight not recognized
6160685 Need UTI for AppleScript script bundle
6160707 UTCoreTypes.h needs to be updated

It is part of the Google Toolbox For Mac project
http://code.google.com/p/google-toolbox-for-mac/