In Automator or Applescript, is there a way to get the number items in a folder and save result to the Clipboard or Automator Variable so I can use it in the next Action?
|
feedback
|
|
In AppleScript:
Finder still uses Carbon-style paths, as shown above; to convert requires something silly like
| |||||||
feedback
|
|
In just Applescript:
| |||
|
feedback
|
|
Here is a simple example, that also work if the folder is empty (return 0):
The first shell script is :
The second is :
The first script counts the number of lines and the second removes unnecessary spaces. | ||||
feedback
|
