Skip to main content
Version: 10.3

REstudio Save Script

The REstudio Save Script automatically saves the current RE Studio project before Open iT performs the configured idle action (for example, terminating the application). This helps prevent data loss when the application is closed because of inactivity.

How It Works

When triggered, the script:

  1. Activates the RE Studio window.
  2. Opens the Save As dialog.
  3. Generates a file name automatically.
  4. Saves the project.
  5. Returns the full path of the saved file.

Generated File Name

Saved files use the following format:

autosave_<PID>_<YYYYMMDDTHHMMSS>
ComponentDescription
autosaveIndicates that the file was generated automatically.
PIDProcess ID (PID) of the RE Studio application.
YYYYMMDDTHHMMSSDate and time the project was saved.
REstudio Autosave File

For example:

autosave_1234_20260629T142210

The date and time saved in this example is 2026-06-29 14:22:10.

Save Location

The script saves the file in the following order of precedence:

  1. The configured save folder, if specified.

  2. Otherwise, the Windows temporary directory:

    C:\Users\<username>\AppData\Local\Temp

Example Configuration

Example: Restudio Save Script Custom Actions
BEGIN custom_actions
-------------------------------------------------------------------------------
title = Restudio Save Script
command = %bin%/AutoHotKey.exe
args ="%bin%ahk4\Ctrl+Shift+s-save-script_5.ahk" %pid% "%root%Log\temp\Freeze\" |more
condition=exe=*RE-Studio-Intersect.exe*
timeout = P5M
when-to-run = pre
---------------------------------------------------------------------------------
END