I've had success with this by setting a variable for the middle part that needs to get evaluated before calling it in the function. It adds another script step, but can also make it more clear what's going on.
Try using GetValue ( Table::Field ; 1 ) - should give you the filename. Run your parsing on that.
If I understand your suggestion correctly, then I have tried that.
Set Variable [$field; Value: GetFieldName(Evaluate(Get(ActiveFieldName)))]
then calling $field when parsing out the date. However, I get the same error.
Just gave that a shot and I get the same results.
If I use the actual field name I get the filename:
But if I try GetValue(GetFieldName(Evaluate(GetActiveFieldName)));1)
it only returns the name of the field.
GetContainerAttribute (Evaluate(Get(ActiveFieldName)) ; "filename" )
Re-reading the original question, I think this may be all you need to get the file name of the file that is in the active container field.
GetAsText ( GetField ( Get ( ActiveFieldName ) ) )
Will that work?
Yes! That worked well. Strange, though - I would expect that to give the the field name, but it does give the filename.