Page 1 of 1

Groovy Expression in FileBot needed for commenting out lines

Posted: 23 Dec 2015, 02:17
by arcelas
Groovy Expression in FileBot needed for commenting out lines

Using the GUI
System Info:

Code: Select all

OS Name	Microsoft Windows 10 Pro
Version	10.0.10586 Build 10586
Other OS Description 	Not Available
OS Manufacturer	Microsoft Corporation
System Name	MASAMUNE
System Manufacturer	MSI
System Model	MS-7917
System Type	x64-based PC
System SKU	To be filled by O.E.M.
Processor	Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, 4701 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date	American Megatrends Inc. V1.12, 8/11/2015
SMBIOS Version	2.8
Embedded Controller Version	255.255
BIOS Mode	UEFI
BaseBoard Manufacturer	MSI
BaseBoard Model	Not Available
BaseBoard Name	Base Board
Platform Role	Desktop
Secure Boot State	Off
PCR7 Configuration	Binding Not Possible
Windows Directory	C:\Windows
System Directory	C:\Windows\system32
Boot Device	\Device\HarddiskVolume7
Locale	United States
Hardware Abstraction Layer	Version = "10.0.10586.0"
User Name	MASAMUNE\david_j_ellis
Time Zone	Central Standard Time
Installed Physical Memory (RAM)	16.0 GB
Total Physical Memory	15.9 GB
Available Physical Memory	11.0 GB
Total Virtual Memory	16.9 GB
Available Virtual Memory	10.0 GB
Page File Space	1.00 GB
Page File	C:\pagefile.sys
Hyper-V - VM Monitor Mode Extensions	Yes
Hyper-V - Second Level Address Translation Extensions	Yes
Hyper-V - Virtualization Enabled in Firmware	Yes
Hyper-V - Data Execution Protection	Yes
Filebot installed via:
[note]Windows Installer[/code]

[note]FileBot 4.6.1 (r3382)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.78
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.5
JRE: Java(TM) SE Runtime Environment 1.8.0_66
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 205 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\david_j_ellis\AppData\Roaming\FileBot[/code]

Re: Groovy Expression in FileBot needed for commenting out l

Posted: 23 Dec 2015, 09:11
by rednoah

Re: Groovy Expression in FileBot needed for commenting out l

Posted: 23 Dec 2015, 19:28
by arcelas
Thanks for the quickl reply. I dona think its working correctly for what I need

Example:

Code: Select all

/* Begin Collection Syntax */

{collection.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/).replaceFirst(/^(?i)(Collection of the)\s(.+)/, /$2 Collection/).replaceAll(/Saga Collection/, "Saga").replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ")}\
This bit of code is leaving the comments in the filename

Re: Groovy Expression in FileBot needed for commenting out l

Posted: 24 Dec 2015, 05:17
by rednoah
Groovy code comments only work in the Groovy code parts... so:

Code: Select all

{/* comments */}

Code: Select all

{/* foo */ collection /* bar */}