Insert Value

Introduction

Using the Insert Value palette, you can insert an object to display the current value of variables such as the names of the home directory or the preferences directory, as well as the current file name, pathname, date, or time. The display object, once inserted, is dynamically updated so that it always reflects the current value of the variable.

1.gif

For example, the text in the following cell contains display objects that refer to the current date and time, respectively. This ensures that each time the notebook is opened, the cell always shows the current date and time.

Todays date is 7/15/24. The current time is 14:07:57.

You can choose from variables divided into three categories.

Inserting a Value

To insert the value of a variable:

1.  Open the Insert Value palette.

2.  Click any of the three categoriesDate and Time, Files and Directories, or System Variablesto view the buttons in that category.

3.  Click the button with the name of the variable whose value you want to enter. The value of the selected variable is pasted into the notebook at the position of the cursor.