Hey all,
I am trying to get the metadata from .txt files saved locally in a folder on my machine. Unfortunately, this is not possible using the core functionality. So I am using Python. I have written a script that works in Visual Studio in Python 2.7.
When I transfer it across to PAD, it throws an error.
After some digging, I have found that the issue is likely to be the way that string flow variables are used/translated between Python and PAD. I have made an example setup (with general filenames etc), pictured below:

What this does, is that it gets the files in a folder.
For each file in the folder, it runs 2 Python scripts (one wrong and one right, so we can compare to see what is happening).
The wrong script creates variables named PythonWrong and ScriptErrorWrong, and has the code
print("""%CurrentItem%"")
The right script creates variables named PythonRight and ScriptErrorRight, and has the code
print("""%CurrentItem%""")
As you can see, the location of the Files is C:\desktop\testing. The error thrown is what you would expect with 1 less " (see below).

However, in the flow variable PythonRight (pic 1), you can see the large gap between C:\desktop and esting.
This, to me implies that it is taking the \t as some kind of formatting command (being 'insert tab', I assume) rather than just being part of the string.
Does anyone here know how to either stop Python or PAD (I have no idea which of the 2 is doing this) looking for formatting commands, or ignoring any it finds?
Many Thanks