screenshot - Use automator to batch rename images -
i have whole folder of screenshots file names this:
http_www.mozilla.org.png http_www.google.com.png
i want remove every element before www. , every element after .org or .com
what should in automator on mac accomplish this?
thanks
if trying rename them, seek applescript:
tell application "finder" set myfiles files of (choose folder) repeat afile in myfiles tell application "system events" set filename afile's name set newname shell script "echo " & quoted form of filename & " | sed 's/.*www\\.\\([a-za-z0-9]*\\).*\\(\\.png$\\)/\\1\\2/'" tell application "system events" set afile's name newname end repeat
screenshot automator
No comments:
Post a Comment