From wiki.ginstr.com
Jump to: navigation, search
 
Line 3: Line 3:
 
[[Category:Action_Library]]
 
[[Category:Action_Library]]
  
;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>
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==

Latest 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]