I am totally new to apple script and need all your help.
the task is to search all sub folders, which are 90 days older, of a folder called “job” and move them to another folder. and within these sub folders, if they contain any folder that name is “fonts”, automatically zip it in same level.
Thanks to StefanK I got part of the problem solved. He dedicates his code below:
set bFolder to ((path to desktop as Unicode text) & "test2:Jobs:") -- path to desktop points to desktop folder of the current user set sFolders to paragraphs of (do shell script "find " & quoted form of POSIX path of bFolder & " -type d -name '*Fonts*'") repeat with oneFolder in sFolders do shell script "/usr/bin/ditto -c -k -rsrc --keepParent " & quoted form of oneFolder & space & quoted form of (oneFolder & ".zip") end repeat
How to solve the 90 days search problem and embeded code above into the search?
thanks to all your help.