Customizing autosave – Apple Shake 4 User Manual

Page 36

Advertising
background image

36

Chapter 1

An Overview of the Shake User Interface

To load or save a Shake script:

m

Click Load or Save to open the Load Script window, or to save the current script with
the same name.

You can also press Command-S or Control-S to save the script quickly. If the script is not
yet named, the Save Script window opens.

To save a script with a new name:

m

Choose File > Save Script As, and enter a new file name in the Save Script window.

To reload the same script:

m

Choose File > Reload.

The script that appears in the Shake title bar is reloaded.

To undo or redo, do one of the following:

m

Click the Undo or Redo button.

m

Press Command-Z or Control-Z to undo, or press Command-Y or Control-Y to redo.

Customizing AutoSave

A backup script is stored automatically every 60 seconds in your $HOME/nreal/
autoSave
directory. The last saved script can be accessed with the File > Recover
menu command (shake -recover in the Terminal), or browsed to under the Directories
pull-down menu in the File Browser.

The backup time interval can be changed in your ui.h files in include/startup/ui/
myPreferenceFile.h
. Enter the following line (with the desired time interval, in seconds,
in place of the “60”):

script.autoSaveDelay = 60;

Four other autosave behaviors can be customized within a .h preference file in the
include/startup directory:

script.autoSaveDirectory: Setting a directory with this declaration overrides the
default behavior of placing autosave scripts in ~/nreal/autosave/.

script.autoSavePrefix: Defines text to be prepended to autosave script names.

script.autoSaveNumSaves: Sets the total number of autosave scripts to be saved.

Undo

Redo

Advertising