This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
trigger:Mounted_Volume [2018/03/22 00:32] peternlewis |
trigger:Mounted_Volume [2019/12/16 21:03] (current) peternlewis |
||
---|---|---|---|
Line 2: | Line 2: | ||
It can be a specific volume or any volume. To specify the volume, you can choose to do it with the exact name of the volume, or a value with a name containing a specific string or a name matching (regular expression) a specific string. | It can be a specific volume or any volume. To specify the volume, you can choose to do it with the exact name of the volume, or a value with a name containing a specific string or a name matching (regular expression) a specific string. | ||
+ | |||
+ | When the macro executes, its [[token:TriggerValue|%TriggerValue%]] token will hold the name of the volume (technically, the last path component, which will sometimes be slightly different to ensure uniqueness by the system). | ||
You could use this trigger to perform actions when you connect a backup disk, or automatically sync files with a disk when it is mounted. | You could use this trigger to perform actions when you connect a backup disk, or automatically sync files with a disk when it is mounted. |