Guest User

Untitled

a guest
Oct 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. property newName : 0
  2. set theFolder to (choose folder with prompt "Choose Folder" with invisibles)
  3.  
  4. tell application "Finder"
  5. set theFolders to folders of theFolder
  6. set sortedFolders to sort theFolders by name
  7. repeat with i from 1 to count of sortedFolders
  8. set newName to newName + 1
  9. set thisItem to item i of sortedFolders
  10. set name of thisItem to newName
  11. end repeat
  12. end tell
Add Comment
Please, Sign In to add comment