1.
Example of script that will just show the file extension in a column.
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
@var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}
@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);
@var $_FILEPROP_DISPLAYNAME = $ext;
On the line "@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);" I get error "Script engine error => Failed to process token - "$ext"" although IsVariableDefined() returns 1.
---
2. Script list for a scriptable column is empty.
3. Scriptable columns are completely lost after closing MC (not only from displayed column, but from the available columns list)
I found that IsVariableDefined always return 1. even if it is not defined.. that the only issue i found
I don't see it losing defined scripables columns. have you checked the option for the script to be a FileProp?
maybe the script was created before you needed to allowed it to be run as fileprop column, thr script need the option "AllowAsFileProp" to be clicking on the "*" in the script editor.
It will add
#options (AllowAsFileProp)
At the top of the script..
so if you created the column before that was added it can be why it is not shown in the list.