osx - How do I use the current folder name without a path as a variable in automator in Mac? -
i using mac osx 10.8.3.
i have workflow in automator set follows:
- ask finder items
- get folder contents
- make sequential
- move finder items
the purpose of workflow automate renaming bunch of photos have saved in folders move them new folder.
i want grab foldername , stick in variable , use variable in "new name box" in make sequential section of work flow (see attached) image.
how grab folder name , assign variable. example has variable called "foldername"
here screenshot
this works in testing:
- ask finder items - set type folders.
- set value of variable - path folder taken action 1.
- run shell script - set pass input : argument. , use /usr/bin/basename "$1" command line folder name
- set value of variable - foldername of folder taken action 3.
get value of variable - set variable obtains value of path
5a. set action 5 ignore input above action 4 - crtl + mouse click on action title contextual menu
get folder contents - contents of folder @ path passed on action 5
- rename finder items - set make sequential , new name = foldername variable
you can add move actions after wish..
Comments
Post a Comment