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:

  1. ask finder items
  2. get folder contents
  3. make sequential
  4. 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 screen shot

this works in testing:

  1. ask finder items - set type folders.
  2. set value of variable - path folder taken action 1.
  3. run shell script - set pass input : argument. , use /usr/bin/basename "$1" command line folder name
  4. set value of variable - foldername of folder taken action 3.
  5. 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

  6. get folder contents - contents of folder @ path passed on action 5

  7. rename finder items - set make sequential , new name = foldername variable

enter image description here

you can add move actions after wish..


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -