S c i e n t i f i c A r t s
WorkLife Requirements Purchase FAQ Documentation WLFW Blog ?
 

Diary List Palette

The Palette

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"diarylistpalette_1.gif"

By clicking on the on the Diary List button on the All Palettes Palette, you will open the Diary List Palette.  You can also open the Diary List Palette by executing

:

"diarylistpalette_2.gif"

The Diary List Palette, in addition to several administrative buttons, shows a list of buttons for opening the Diaries that are in the current Diary's directory. Recollect that a Diary's directory may have multiple Diaries as in this diagram:

"diarylistpalette_3.gif"

The Directory Structure of a Diary or an Associated Group of Diaries

So the Diary List Palette will list the Current Diary and any other that coexist with it in the current Diary directory.  In the example of the preceding diagram—if there are three Diaries— the Diary List Palette would look like:

"diarylistpalette_4.gif"

An Example of the Diary List Palette

Note that the Diary List Palette generally lists all of the Notebooks contained in the Current Diary Directory, whether or not they are, in fact, Diaries. Clicking on the button of a Notebook in the Diary List Palette that is not a Diary will elicit an error message that instructs you how to convert the given notebook into a Diary if you wish to. You can change the behavior of which Notebooks are displayed in the Diary List Palette through the use of Keywords.  The functions that are relevant to this are AddDiaryKeywords and DeleteDiaryKeywords.  The default behavior is to accept all Keywords through the wildcard *.

The Palette Buttons

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"diarylistpalette_5.gif"

"diarylistpalette_6.gif"

This opens up a dialog window to create a New Diary.  The New Diary dialog looks like:

"diarylistpalette_7.gif"

An Example of the New Diary Dialog

At the top of this dialog is information on the current Diary directory.

If you enter a name in the Diary Name field and click on Create Diary in the Current Diary's Directory, then a new Diary with that name will be created there and that Diary will open and become the current Diary.  (In this case any entry into the Directory Name field will be ignored.)  

If instead you enter a name in the Diary Name field and a directory name in the Directory Name field  and click on Create Diary in its own Directory, then a new Diary with that name will be created in a subdirectory of the current Diary's directory. The new Diary will open and become the current Diary and the new directory will become the current Diary's directory.   (If no name is entered in the  Directory Name field an error message will be returned if you click on Create Diary in its own Directory,)

"diarylistpalette_8.gif"

This opens the Manage Keywords dialog.  This dialog looks like:

"diarylistpalette_9.gif"

The Manage Keywords Dialog

In this example of the Manage Keywords dialog there are two keywords, "Diary" and "Notes," and "Notes" has just been added to the list of Current Diary Keywords by typing it into the text field and clicking on the Add Keywords button.  "Notes" could be removed from the list by clicking on the Clear Keywords button.

Note that the Diaries that are listed below under the Diaries button are actually all of the Mathematica notebooks contained in the current Diary's directory that contain one of the Keywords in its name. In order to avoid having to specify many Keywords you can take one of two strategies: [1] Pick a few Keywords and always use one of them in a Diary's name or [2] allow All possible words to be Keywords and make sure that no non-Diary Mathematica notebooks are placed in a Diary directory.  To allow all possible words to be Keywords execute AddDiaryKeywords[All].  The default setting is to allow all possible words to be Keywords.  In general, unless you wish, you do not need to change this behavior.

"diarylistpalette_10.gif"

This opens the Directory Browser dialog window.  In this window you can navigate your computer's directories and choose the one that you wish to open a Diary from. The resulting directory is then the value of $DefaultDiaryDirectory.

"diarylistpalette_11.gif"

This opens the current Diary's Directory.

"diarylistpalette_12.gif"

Opens the Favorites & Recent Palette.  This can also be opened programmatically by executing:

"diarylistpalette_13.gif"

"diarylistpalette_14.gif"

This button toggles open and closed the sub-palette containing the Diaries that are contained in the current diary's directory.  When one of these buttons is clicked, the associated Diary is opened and specified as the current Diary.

It is generally important to open notebooks (and Diaries) with buttons from the WorkLife FrameWork™ Package.  This is because when they are opened in this way additional information is added to the notebook—and entries are made in A WorkLife FrameWork's™ internal databases—so that they can be tracked in a variety of ways by the WorkLife FrameWork™ Package.

"diarylistpalette_15.gif"

This button shows the name of the current Diary. It is refreshed whenever a Diary is made the current Diary. In this example it is the Diary named Diary1. If there is no current Diary then this button reads None. The current Diary can be opened by using the Current Diary button below.

"diarylistpalette_16.gif"

This opens the Current Diary if it has been chosen. If not, an error message is generated.

If the current Diary is open then its window is brought to the front.  If it is not opened then it is opened and any Default Code Cells are executed.

The following three sets of buttons show those Diaries that, when this document was being written, were in the current Diary's directory.

In each case the button with the Diary's name, when clicked on, opens that Diary and makes it the current Diary.  The button with the makes that Diary the current one but does not open it up.

"diarylistpalette_17.gif"

"diarylistpalette_18.gif"

"diarylistpalette_19.gif"

Copyright ©, 2005→2009 Scientific Arts, LLC. All rights  reserved.

Copyright ©, 2005-2009 Scientific Arts, LLC