sincity Posted August 13, 2015 Share Posted August 13, 2015 http://cdn.mos.techradar.com/art/Features%202/computing%20how%20tos/all%20my%20files/all-my-files-470-75.JPGHere's what to do when your downloaded Mac files start changing their names all by themselves.QuestionI use the Outlook Web app to access my company's Exchange email and to download work file attachments. When I do so, they download correctly, but the file names have "%20" in the places previously occupied by spaces in the file name. It is very time consuming to fix this manually. Is there any way to prevent this in the first place?AnswerWhen downloading files online, the "%20" is a web standard to replace the spaces in words and phrases. The best way to prevent this by only uploading files with underscores ("_") instead of spaces. However, with a little Automator action, you can completely rid yourself of these issues with some on-the-fly renaming of files when they are added to the Downloads folder.http://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/untitled-420-90.JPGIn Automator, follow these steps:1. In the template chooser, select Folder Action.2. In the "Folder Action receives files and folders added to" drop-down menu, select the Downloads folder.3. Find the "Get Folder Contents" action in the pane to the left, drag it into the workflow, and check its option for "Repeat for each subfolder found."4. Add the "Rename Finder Items" action into the workflow underneath the previous action. When prompted, choose not to add the Copy Finder Items action as well, then set the action's options to "Replace Text", and set "Find" to "%20" (without the quote marks), "in full name," and put a space in the Replace field.5. Save the action by pressing Command + S, then specifying a name.Each time a file is added to the Downloads folder, this action will run, and it will automatically rename files with names containing "%20" to use spaces instead. http://rc.feedsportal.com/r/234567079967/u/49/f/415085/c/669/s/48f3a047/sc/28/rc/1/rc.imghttp://rc.feedsportal.com/r/234567079967/u/49/f/415085/c/669/s/48f3a047/sc/28/rc/2/rc.imghttp://rc.feedsportal.com/r/234567079967/u/49/f/415085/c/669/s/48f3a047/sc/28/rc/3/rc.imghttp://da.feedsportal.com/r/234567079967/u/49/f/415085/c/669/s/48f3a047/sc/28/a2.imghttp://pi.feedsportal.com/r/234567079967/u/49/f/415085/c/669/s/48f3a047/sc/28/a2t.imghttp://rss.feedsportal.com/c/669/f/415085/s/48f3a047/sc/28/mf.gifhttp://feeds.feedburner.com/~r/techradar/software-news/~4/Ul_B6LVO7R4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.