Get folder contents based on text within a texfile document

Hi, I have made a workflow that saves a texfile with a path inside.

eg. /Users/Shared/Sessions/Test/

Now from another workflow I would like to get the contents of this folder.

So far I have

Get Specified finder item - to select textfile
Combine Text Files - to get contents of file
Set Value of Variable - Folder
Get Value of Variable - Folder
Get Folder Contents

Now I thought by setting the value of the variable, I would be able to use it to the folder contents.
However I’m getting a warning that The action “Get Folder Contents” was not supplied with the required data.

It seems like this should be fairly straightforward, but I just can’t get my head around this.

Thanks for any help.

Solved!

I just needed to run it through “Run Shell Script” as arguments before I set the variable.

Hey, it seems like we’re trying to accomplish something very similar, except that I think yours is working and mine isn’t.

I wonder if you could take a look at my post here? http://macscripter.net/viewtopic.php?id=44011