Page 1 of 1

if file is found, copy file X in that folder...

PostPosted: Wed Aug 13, 2014 7:29 am
by vloryan
hi guys,

i have no idea how to solve the following:

1. if folder has "content.txt"
2. copy file "master.indd" from path "/Users/xyz/Dropbox/fl/Automator/" to that folder that has "content.txt"

any idea how to noodle this?

thanks!

Re: if file is found, copy file X in that folder...

PostPosted: Wed Aug 13, 2014 11:16 am
by Mr_Noodle
For #1, you can do a nested condition. Hold down option and click on the + button to create a new condition. There, you can select a target for the nested condition. You can select "any of its sub-files". Then under the nested condition, you can add a condition like "Name is content.txt".

For #2, though, you'll need to write a script since Hazel knows nothing about this master.indd file.