Advertisement
tjone270

shortened file counter

Feb 9th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set thePath to "~/Desktop"
  2. return (do shell script "ls -l \"" & thePath & "\" | wc -l | awk '{ print $1 }'") as integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement