m (formatting) |
|||
Line 9: | Line 9: | ||
===Rename media file=== | ===Rename media file=== | ||
− | ;<code>[gn:act_renameMediaFile]|[target,source]</code> | + | :;<code>[gn:act_renameMediaFile]|[target,source]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
− | | [[target]] | + | | [[target]] on which media file rename will be performed |
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
− | :*[[Datatypes#photo|photo]] | + | :*<code>[[Datatypes#photo|photo]]</code> |
|- | |- | ||
− | | [[source]] | + | | <code>[[source]]</code> |
− | | [[source]] | + | | [[source]] of new file name |
− | * Valid [[ | + | * Valid [[source]]: |
− | :*[[Datatypes#text|text]] | + | :*<code>[[Datatypes#text|text]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@variable/Photo</code> - target<br> | + | :<code>@variable/Photo</code> - target<br> |
− | <code>@string/newPhotoName</code> - name source<br> | + | :<code>@string/newPhotoName</code> - name source<br> |
− | <code>[gn:act_renameMediaFile]|[@variable/Photo,@string/newPhotoName]</code> | + | :; ⤷ <code>[gn:act_renameMediaFile]|[@variable/Photo,@string/newPhotoName]</code> |
<hr> | <hr> |
Revision as of 20:01, 12 July 2017
gn:act_renameMediaFile
- Description
- Action is used to rename media files stored in target
- Action returns
- void
Action signatures
Rename media file
[gn:act_renameMediaFile]|[target,source]
Parameter Description target
target on which media file rename will be performed - Valid targets:
source
source of new file name - Valid source:
Example
@variable/Photo
- target@string/newPhotoName
- name source
- ⤷
[gn:act_renameMediaFile]|[@variable/Photo,@string/newPhotoName]
- ⤷