|Tinderbox User's Manual : Attributes|
In addition to its title and text, each Tinderbox note has a long list of attributes that describe aspects of the note: its name, color, position, shape, and size. You can define your own attributes as well. Attributes let you (and Tinderbox) put meaningful information in a known place.
For an informal note, you might simply write information in the note’s text:
Read Gibbon’s Decline and Fall of the Roman Empire
In other contexts — research notes for a dissertation, say — you
might prefer to be a bit more formal:
Author: Edward Gibbon
Title: The Decline and Fall of the Roman Empire
Author and Title are examples of attributes; by putting the name of the author in a specific place, it is easy for us (and for our Tinderbox agents) to distinguish a book by Gibbon from a book that is about Gibbon.
You don’t have to define Tinderbox attributes before you begin making and using notes. Tinderbox is designed to encourage experimentation and evolutionary change in your work. As your needs change and your understanding grows, you can add, change, and delete attributes whenever you like.
Each attribute has a value; values can be numbers, character strings, boolean (true/false) values, dates, colors, files, and so forth. Whenever you rename, edit, or change a note in Tinderbox, you are actually changing the value of one or more attributes of that note.
There are two types of attributes:
A few System attributes are
Tip: attribute names are case sensitive—"Height" is not the same as "height."
You can inspect and change the value of any attribute in a note's Get Info... window (choose Get Info from the Note menu). Inherited values are in gray; values set specifically for this note are in black, and read-only values are italicized.
A note's key attributes are significant attribute-value pairs that you want to be displayed at the top of the note’s text window. You can choose the key attributes by setting the value of the attribute named
KeyAttributes -- just enter the names of the attributes you'd like to make key attributes, separating them with semi-colons.
Select the key attribute from the Key Attributes menu in the text window sidebar, OR
Drag the key attribute from the Attributes palette and drop it into the text window, OR
Select the note and press Enter to view the note’s Rename dialog. Choose key attributes from the Key Attributes popup menu, and press OK.
You may drag key attributes to up or down to rearrange their sequence, or drag them out of the key attributes table into the text area of the note to remove them.
In a text window
The attribute palette is a convenient way to see what attributes your document has, and to change the default values for attributes.
Tip: the attributes palette does not allow you to change the value of an attribute for a selected individual note or notes. (The Quick Stamp is a good way to do that.).
To open the attributes palette
There are several ways to change an attribute's value for a selected note or notes:
In the quick stamp palette,
Changing some attributes—such as Width or Color—will alter the appearance or other visible properties of the note(s).
For some attributes, particularly attributes (such as HTMLExportTemplate) for which you are choosing a file, an info window is a more convenient way to change the attribute’s value.
From the info window,
You cannot change the values of attributes that are exclusively set by Tinderbox. (These attributes appear italicized in the list of attributes.)
Changing some attributes—such as Width, or Color—will alter the appearance or other visible properties of the note.
When Tinderbox checks the value of an attribute, it first sees whether a specific value has been assigned to that note. If a specific value has not been assigned, and there is also no prototype from which to take a value, most attributes define a default value that applies whenever no specific value exists. (Most attributes define their default value themselves; for a few, the default is set by a Preference pane.)
The Attributes window lets you change the default value of attributes. If you set the default value of Color to red, then all newly-created notes will be red, and all notes for which no specific color was chosen will also become red.
Then, in the attribute palette,
You might not ever need to create a new attribute, but you might think of a few that suit your needs.
First, in the attribute palette,
Or, from any info window,
All notes will have this new attribute and will get the default value for the new attribute, until you set it otherwise in particular notes.
Attributes can be of various types, to contain various kinds of data:
Any sequence of text. "Yes," "Marie Hancock-Lowickie, Jr.," and the first paragraph of the Gettysburg Address would all be valid values for a string attribute. HTMLExportExtension is an example of a string attribute.
Color values are accepted in these formats:
BorderColor, which controls the color of a note's main border, is an example of a color attribute.
You may drag color swatches out of the Colors pane of the Attributes palette, and drop them on notes in the map, outline or treemap views.
The pathname to a file. Used for such System attributes as HTMLExportTemplate.
A true/false value. May use either 1/0 or true/false. ShowTitle is an example of a boolean attribute.
A date and time. Month/day/year format, with an optional time. When entering a value for a date, you can also use the terms yesterday, today, and tomorrow, and add or subtract units of time. For example, these are all acceptable values for a date attribute:
10/25 (assumes the current year)
November 15, 1955
Nov 15 55
today - 7 days
yesterday + 4 months (expressing date values relative to the current time is often convenient when defining agents and actions.)
Wednesday (interpreted as next Wednesday)
Created is an example of a date attribute.
Either an integer or a floating point number, positive or negative.
Sets are strings separated by semicolons, and are useful for lists of topics, categories, and tags.
Topics: programming;computer languages;courses;news
Tags: tips and techniques; readme; TuesdayMeeting
Sets are much like string attributes, and anything that can change a string can change a set, but the operators + and - have different meanings in sets. In a set, "+" adds an element to a set and "-" removes it.
Sets can be assigned with Stamps, Quickstamp, the Get Info Window, or the Key Attributes table. They may also be set by agents and other actions.
KeyAttributes is an example of a set attribute.
Agents often use attributes to locate notes accurately. If you define a user attribute Author, agents will locate books in your notes written by Booker T. Washington and ignore notes on Seattle, Washington.
Agents can also set the value of attributes. An agent could look for items that are due within a week and automatically set the priority to "urgent."
The value of any attribute can be exported to HTML using the expression ^get(attribute_name). For example, if we have stored the location of an image in user attribute ImageName, we might export:
COLORS - Tinderbox uses color names to refer to specific colors. In the Colors panel, you can change the color scheme and add their own. For example, if you prefer a subtler color scheme, you might redefine "black" to a medium gray, "blue" to a slate blue, and red to a rusty earth tone.
Each named color has seven variants. For example:
The Colors panel offers color swatches corresponding to each color variant, and lets you redefine existing colors.
STAMPS are actions that set attributes. Like a rubber stamp, a Stamp changes the selected note or notes to which you apply it, providing you a custom tool kit for your needs. See the Stamps chapter of this manual for details.
LINK TYPES - a list of the types of links possible between notes. Users may change the name and color of links here, make link types invisible in map views, or create their own link types.
MACROS - Macros bundle complex export expressions into simpler, more memorable packages. See the Using Macros section of the HTML Templates chapter for more.
|Up: Tinderbox User's Manual|
|Previous: Writing in Notes||Next: Prototypes|