Thursday, November 23, 2017
  • Index
  •  » Automator
  •  » Get folder contents based on text within a texfile document

#1 2015-03-01 05:07:55 pm

Jonhol
Member
Registered: 2015-02-25
Posts: 12

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.

Offline

 

#2 2015-03-01 06:38:47 pm

Jonhol
Member
Registered: 2015-02-25
Posts: 12

Re: Get folder contents based on text within a texfile document

Solved!

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

Offline

 

#3 2015-06-18 05:32:04 pm

aminadream
Member
Registered: 2015-06-18
Posts: 3

Re: Get folder contents based on text within a texfile document

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

Last edited by aminadream (2015-06-18 05:32:34 pm)

Offline

 
  • Index
  •  » Automator
  •  » Get folder contents based on text within a texfile document

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)