# Auto-set Destinations

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 destinations 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).
   * reset any disks that were auto-sourced or remembered as a destination.
   * set the destination paths specified in `destinations` .

{% hint style="info" %}
Disable OffShoot's Auto Source and remember Destination settings for a "cleaner" app start experience.
{% endhint %}

### Settings

```
set theAPItoken to ""
set destinations to { "" } -- e.g { "/Volumes/T1", "/Volumes/T2" }
```

### Download

{% file src="<https://1060439511-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LStRji2w1AYja1bLBFv%2F-M-tWcu0YmX2OLFpxaQk%2F-M-t_SAWLSYCqNCn14yJ%2FAuto%20set%20destinations%20on%20Hedge%20start.scpt.zip?alt=media&token=e6bc74f6-c506-43ba-bf97-951842b2abac>" %}
