This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
trigger:Mounted_Volume [2017/03/05 21:24] peternlewis [Forum] |
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. | ||
===== See Also ===== | ===== See Also ===== | ||
- | |||
- | ---- | ||
=== Conditions === | === Conditions === | ||
Line 18: | Line 18: | ||
* [[trigger:Periodic|Periodic]] | * [[trigger:Periodic|Periodic]] | ||
* [[:Triggers|See all Triggers]] | * [[:Triggers|See all Triggers]] | ||
- | |||
- | ---- | ||
==== Forum ==== | ==== Forum ==== |