r/applescript • u/carsononline • Nov 01 '24
Help creating script to count files by creation date on SMB share
I have an SMB share (specific directory) that I want to count how many files are created by day. Simple count of files by date. Can someone help? Im a rookie here.
1
Upvotes
1
u/0x4542 Nov 01 '24
It would be quicker and easier to do it using shell scripting. Why? Assuming you're going to need a dictionary data structure to keep track of counts assigned to dates, AppleScript does not have a dictionary data structure as part of its language/library, so you'd have to roll your own first. Shell scripting already has support for associative arrays. Plus it would be far far quicker run as a shell script. Just IMO.
1
u/AmplifiedText Nov 01 '24
ChatGPT is pretty good at this kind of stuff.
1
u/vacuous_comment Nov 15 '24
For me on a pile of crap I am working on now I get
You can set that as alias or make a script that takes an arg.