<p>Els atributs són camps de dades que pertanyen a un fitxer, però no formen part d'aquest fitxer, per exemple, no es compten en la mida del fitxer i poden ser copiats o canviats sense tocar el propi fitxer. El sistema utilitza aquests atributs per emmagatzemar, per exemple, la mida del fitxer, tipus del fitxer o la data de l'última modificació. Això és similar a d'altres sistemes operatius i els seus sistemes de fitxers.</p>
<p>La diferència és que podeu afegir qualsevol tipus d'atribut per a qualsevol fitxer i mostrar-ho o fer-ho editable a una finestra del Tracker. Només cal definir el tipus d'atribut que es vol afegir a un tipus de fitxer (per exemple, cadena, un enter o hora) i donar-li un nom i una descripció.</p>
<p>Attributes are displayed quite similar to a database or spreadsheet. Using Tracker you can choose which attributes to display (columns) and sort file listings (rows) accordingly.</p>
<p>To do this, open a Tracker window, click on the <spanclass="menu">Attributes</span> menu, and select the attributes you want to display. Alternatively, simply right-click onto a column heading and mark the items in the context menu. You can rearrange the columns by a simple drag & drop of the column heading. Moving a column out of a window, is a fast way to get rid of columns you don't need.</p>
<p>Double-click on the line between two attributes in the heading to automatically resize a column to its optimal width.</p>
<p>Click on a column heading to toggle the sorting order from ascending to descending. You can establish a secondary sort order by pressing the <spanclass="key">SHIFT</span> key while clicking on a column heading. You can sort your People files by company and within that order sort by contact name, for instance. See the above screenshot as an example. The secondary sort order is marked by a lighter colored indicator beside the heading.</p>
<p>Editing these attributes is as simple as renaming a file: Either click on an entry or press <spanclass="key">ALT</span><spanclass="key">E</span> and move between the attributes with <spanclass="key">TAB</span> and <spanclass="key">SHIFT</span><spanclass="key">TAB</span>. <spanclass="key">ESC</span> leaves the editing mode without applying the changes.</p>
<aid="attributes-terminal"name="attributes-terminal">Atributs al Terminal</a></h2>
<p>If you prefer to use the commandline or plan to work with many files using scripting, there are several commands for controlling attributes from Terminal.</p>
<p>Besides all the "<tt>META:*</tt>" attributes that hold the contact's information, there are two attributes that are managed by the system:</p>
<ul>
<li><p><tt>BEOS:TYPE</tt> holds the file type as a <acronymtitle="Multipurpose Internet Mail Extensions">MIME</acronym> string, here "<tt>application/x-person</tt>". It determines the default icon and the application that opens the file when you e.g. double click it.</p></li>
<li><p>"<tt>_trk/pinfo_le</tt>" is the attribute with which Tracker keeps track of a file's icon position.</p></li></ul>
<divclass="box-info">Note the backslash after "Clara". In Terminal you have to "escape" special characters like <tt>'"*\$?!</tt>. The space between "Clara" and "Botters" is also one of those. Therefore the backslash is really in front of the space character, and not after "Clara".</div>
string, mime, int, llong, float, double, bool, icon, raw
or a numeric value (ie. 0x1234, 42, 'ABCD', ...)
The default is "string"</pre>
<p>So, say dear Clara took a job with the multi-national Barkelbaer Inc., you fill the formerly empty "Company" attribute with that data (which is of type "string"):</p>
<preclass="terminal"> ~/people ->addattr -t string META:company Barkelbaer\ Inc. Clara\ Botters</pre>
<p><spanclass="cli">copyattr</span> copies attributes from one or more files to another. By default, the actual contents of the file is <b>not</b> copied.</p>
<p>If you do want to copy the attributes plus the data of the file itself, you can add the option "<spanclass="cli">-d</span>" or "<spanclass="cli">--data</span>".</p>
<p><br/></p>
<p>More information on these commands and their options can be found by typing the command name followed by "<spanclass="cli">-h</span>" or "<spanclass="cli">--help</span>".</p>