# Auto-set Preferences

This Applescript uses OffShoot's [Disk Added](https://docs.hedge.video/offshoot/features/automation/scripts/events/disk-added) event to identify an OffShoot app start and sets one or more preferences through the OffShoot API.

### How to use

1. Open the script and edit the settings.
2. Add the script to the [Disk Added](https://docs.hedge.video/offshoot/features/automation/scripts/events/disk-added) event in OffShoot's `Settings > Scripting` pane.
3. When OffShoot starts the script will:
   * check if the Disk Added event is triggered by the startup drive (only happens once per app start)
   * set the preferences specified in `settings`&#x20;

### Settings

```
set theAPItoken to ""
set settings to ¬
	{auto_eject:"0"} & ¬
	{auto_source_recents_enabled:"0"} & ¬
	{auto_destination_enabled:"0"} & ¬
	{auto_source_on_name_enabled:"0"} & ¬
	{auto_source_on_name:""} & ¬
	{queue_mode:"0"} & ¬
	{checkpoint_enabled:"0"} & ¬
	{logs_enabled:"1"} & ¬
	{ignore_files:""} & ¬
	{rename_files:""} & ¬
	{create_folders:""}
```

### Download

{% file src="<https://1060439511-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LStRji2w1AYja1bLBFv%2F-M-t_ys2beq7sM2Xe0KT%2F-M-thqgYHVAYcVpwWKKL%2FAuto%20set%20preferences%20on%20Hedge%20start.scpt.zip?alt=media&token=e8e7693e-2d9b-4ab3-80ce-d8c1f7c324ed>" %}
