title: How do I use the current folder name without a path as a variable in automator in Mac?
body: <p>I am using Mac OSX 10.8.3.</p>
  
  <p>I have a workflow in Automator set up that is as follows:</p>
  
  <ol>
  <li>Ask for Finder Items</li>
  <li>Get Folder Contents</li>
  <li>Make Sequential</li>
  <li>Move Finder Items</li>
  </ol>
  
  <p>The purpose of the workflow is to automate renaming a bunch of photos that I have saved in folders then move them to an new folder.</p>
  
  <p>I want to grab the foldername and stick it in a variable and use that variable in the "new name box" in the Make Sequential section of the work flow (see attached) image. </p>
  
  <p>How do I grab just the folder name and assign it to a variable.  My example has a variable called "FolderName"</p>
  
  <p>Here is a screenshot
  <img src="https://i.imgur.com/OBHEXlF.jpg" alt="screen shot"></p>