From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
Line 4: Line 4:
  
 
;Description: Action is used to rename media files stored in [[target]]
 
;Description: Action is used to rename media files stored in [[target]]
 +
In case new file name contains special characters (<code>\\</code><code>/</code><code>:</code><code>*</code><code>\</code><code><</code><code>></code><code>|</code>), they will be replaced with <code>-</code>
 
;Action returns: void
 
;Action returns: void
 
==Action signatures==
 
==Action signatures==

Revision as of 10:46, 22 September 2020

gn:act_renameMediaFile

Description
Action is used to rename media files stored in target

In case new file name contains special characters (\\/:*\<>|), they will be replaced with -

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
source source of new file name

Example

@variable/Photo - target
@string/newPhotoName - name source
[gn:act_renameMediaFile]|[@variable/Photo,@string/newPhotoName]