The Spotlight indexing module supports custom XMP fields, which can be
indexed and that are available for the Spotlight search. This is very
powerful because customers can define their own XMP panels in Photoshop
so that the additional metadata fields are Spotlight indexed. Custom
metadata can be added to the Adobe Photoshop file info panel (which is
accessed via File > File info ...
) and indexed for metadata
searches. Details about custom file info panels and their creation can
be found in the Adobe “XMP-FileInfo-SDK-5.1”.
HELIOS provides a sample custom file info panel, so that the custom metadata feature can be tested. The HELIOS sample panel “HELIOSSample.zip” is available at:
webshare.helios.de
User Name: tools
Password: tools
Sharepoint: HELIOS Tools
Download “XMP Sample Dialog > HELIOSSample.zip”
Extract “HELIOSSample.zip” and copy the “HELIOSSample” folder to the appropriate target location described below.
The sample panel defines three custom metadata attributes:
<xmp_property name="Barcode" category="external" label="$$$/Custom/Property/BarcodeLabel=Barcode No.:" type="text"/> <xmp_property name="Vendor" category="external" label="$$$/Custom/Property/VendorLabel=Vendor:" type="text"/> <xmp_property name="GoodsGroup" category="external" label="$$$/Custom/Property/GoodsGroupLabel=Goods Group:" type="text"/>
For installation, it must be copied to the adequate custom panels folder (depending on the Photoshop version, OS, etc.):
Mac:
/Users/<user>/Library/Application Support/Adobe/XMP/Custom File Info Panels/2.0/panels
or
/Library/Application Support/Adobe/XMP/Custom File Info Panels/2.0/panels
Windows XP:
C:\Program Files\Common Files\Adobe\XMP\Custom File Info Panels\ 2.0\panels\<PANEL\_ROOT>
Windows 7/Vista:
C:\Program Files\Common Files\Adobe\XMP\Custom File Info Panels\ 2.0\panels\<PANEL\_ROOT>
Mac:
/Users/<user>/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0/panels
or
/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0/panels
Windows XP:
C:\Program Files\Common Files\Adobe\XMP\Custom File Info Panels\3.0\ panels\<PANEL\_ROOT>
Windows 7/Vista:
C:\Program Files\Common Files\Adobe\XMP\Custom File Info Panels\3.0\ panels\<PANEL\_ROOT>
For panels, a trust file needs to be created in:
Mac:
/Users/<username>/Library/Preferences/Macromedia/Flash Player/#Security/ FlashPlayerTrust/
Windows XP:
C:\Documents and Settings\<username>\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust
Windows 7/Vista:
C:\Users\<username>\AppData\Roaming\Macromedia\Flash Player\#Security\ FlashPlayerTrust
An example for a trust file is “CustomPanelsCS4.cfg”, which may have the following content:
/Users/john/Library/Application Support/Adobe/XMP/Custom File Info Panels/2.0/panels/
The XMPAttributes preference (see 7.1.2 “Plug-in dependent preference keys”) must be set to specify custom entries:
prefvalue -k "Programs/indexsrv/Plugins/oiindexer/XMPAttributes/ http:\/\/de.helios.samplenamespace\/" -t strlist "Barcode,Vendor,GoodsGroup"
Custom file information attributes can be searched, e.g.:
$ dt ftsearch -s "Vendor==HELIOS"
This database contains a list of words that you do not want be stored in the full-text database (e.g. “the”, “than”, “also”). The advantage is that the “.DesktopIndex” database can be smaller. The disadvantage is that searches for exact phrases containing these words will not succeed. The FilterDB preference allows specifying the path to the word list database. The database itself is created as follows:
On a command line enter the path to the word list database:
sqlite3 <path to word list database>
# sqlite3 /data1/demovol/stopword.db
Create “sWords” table:
CREATE TABLE sWords (word STRING PRIMARY KEY);
Entries are done:
INSERT INTO sWords VALUES (<word1>,<word2>,<word3>);
<word>
must be specified in lower case.
Finalize your entries:
.quit
# prefvalue -k "Programs/indexsrv/Plugins/txtindexer//c//FilterDB" -t str '/data1/demovol/stopword.db'