{"id":110,"date":"2020-07-02T16:24:08","date_gmt":"2020-07-02T16:24:08","guid":{"rendered":"http:\/\/wordpress-dev.library.illinois.edu\/digitization-services\/?page_id=110"},"modified":"2020-07-02T16:24:08","modified_gmt":"2020-07-02T16:24:08","slug":"automator","status":"publish","type":"page","link":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/software\/automator\/","title":{"rendered":"Automator"},"content":{"rendered":"<p>Automator, a built-in Mac app, is one of the three renaming tools we use to rename files and folders.<\/p>\n<p>To find Automator on a Mac, go to Finder &#8211; Applications &#8211; Automator.<\/p>\n<p>You will need to create a workflow for renaming files. This program is particularly useful for files that have non-standard naming conventions, such as an inconsistent number of zeros before the image number.<\/p>\n<p>1. Open Automator. You will see the following menu on the left side. Use the search bar to find commands by name and drag them into the workflow space on the right.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-113\" src=\"http:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorMenu-197x300.png\" alt=\"Automator menu selection including the library of possible actions to add to the workflow\" width=\"296\" height=\"450\" srcset=\"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorMenu-197x300.png 197w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorMenu-673x1024.png 673w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorMenu-768x1168.png 768w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorMenu.png 772w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><\/p>\n<p>2. Drag workflow tools into the workflow space in the following order.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-114 aligncenter\" src=\"http:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow1-300x219.png\" alt=\"Workflow Item 1: Ask for Finder Items. Select &quot;Prompt:&quot; Choose a Finder Item. Select &quot;Start at&quot; a folder of images or other files on your computer. Select &quot;Type&quot; Folders. Do not select &quot;Allow Multiple Selection.&quot; Do not change any results or options. Workflow item 2: Set Value of Variable. Type &quot;Path&quot; into &quot;Variable&quot; text box. Workflow Item 3: Run Shell Script. Select &quot;shell&quot; bin\\bash. Select &quot;Pass input as arguments.&quot; Type &quot;echo ${1##*\/}&quot; into the text box. \" width=\"480\" height=\"350\" srcset=\"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow1-300x219.png 300w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow1-1024x747.png 1024w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow1-768x561.png 768w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow1.png 1244w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-115 aligncenter\" src=\"http:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow2-300x182.png\" alt=\"Workflow item 4: Set Value of Variable. Type &quot;FolderName&quot; into &quot;Variable&quot; text box. Workflow Item 5: &quot;Get Value of Variable.&quot; Select &quot;Path&quot; in Variable drop down menu. Select &quot;Ignore this action's input&quot; under &quot;Options.&quot; Workflow Item 6: &quot;Get Folder Contents.&quot; Select &quot;Repeat for each subfolder found.&quot;\" width=\"480\" height=\"292\" srcset=\"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow2-300x182.png 300w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow2-1024x622.png 1024w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow2-768x467.png 768w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow2.png 1238w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-116 aligncenter\" src=\"http:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow3-300x153.png\" alt=\"Workflow Item 7: &quot;Sort Finder Items.&quot; Select by &quot;name&quot; and in &quot;ascending&quot; order in drop down menus. Workflow item 8: Rename Finder Items. Select &quot;Make Sequential.&quot; Select &quot;new name&quot; button and drag &quot;FolderName&quot; variable from variables box at the bottom of the screen. Place number &quot;after name&quot; drop down menu. Start numbers at &quot;1&quot; in text box. Separated by &quot;dash&quot; drop down menu. Check &quot;Make all numbers 8 digits long.&quot;\" width=\"480\" height=\"245\" srcset=\"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow3-300x153.png 300w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow3-1024x524.png 1024w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow3-768x393.png 768w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorWorkflow3.png 1236w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>Some common issues:<\/p>\n<ul>\n<li>If you do not see &#8220;Path&#8221; or &#8220;FolderName&#8221; once you have created those variables, select &#8220;View&#8221; at the top of your screen and make sure &#8220;Log&#8221; is checked. Then in step 8, you can drag &#8220;FolderName&#8221; to the text box so it knows what variable you are talking about. You cannot simply type &#8220;FolderName&#8221; and have Automator recognize your variable.<\/li>\n<li>Make sure that in step 5, &#8220;Get Value of Variable&#8221; you select &#8220;Ignore This Action&#8217;s Input.&#8221;<\/li>\n<li>In step 8, search for the &#8220;Rename Finder Items&#8221; tool. You can then select &#8220;Make Sequential&#8221; in the first drop-down menu.<\/li>\n<\/ul>\n<p>When you are ready to rename your images, make sure you have set your folder in Step 1 to the location of your files, and then click &#8220;Run&#8221; in the top right corner of the program.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-121 aligncenter\" src=\"http:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen-300x217.png\" alt=\"Run and Stop buttons are located in the top right corner of the program window\" width=\"480\" height=\"346\" srcset=\"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen-300x217.png 300w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen-1024x739.png 1024w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen-768x554.png 768w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen-1536x1109.png 1536w, https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-content\/uploads\/sites\/79\/2020\/07\/AutomatorFullScreen.png 2006w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>If your workflow runs correctly, save it as &#8220;RenameWorkflow&#8221; and you can access the same procedure again without needing to set it up every time.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automator, a built-in Mac app, is one of the three renaming tools we use to rename files and folders. To find Automator on a Mac, go to Finder &#8211; Applications &#8211; Automator. You will need to create a workflow for renaming files. This program is particularly useful for files that have non-standard naming conventions, such [&hellip;]<\/p>\n","protected":false},"author":621,"featured_media":0,"parent":74,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-110","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/pages\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/users\/621"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/pages\/110\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/pages\/74"}],"wp:attachment":[{"href":"https:\/\/wordpress.library.illinois.edu\/digitization-services\/wp-json\/wp\/v2\/media?parent=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}