Make a Cut and Paste Feature Service in Finder Mac OS use Automator App

Cut and paste, I don’t think it’s a very useful function when we are cleaning file or folder in our computer. That function is more important when we use Mac OS, because  there aren’t a Cut function in that folder management (Finder). Actually we can use Copy or Duplicate, but it’s not effective for me, because sometimes we forgot what the file or folder were being copied. More over when we are copying a lot of file / folder, then the process stopped suddenly, we don’t know what the file / folder has been copied or not. Of course, there are a lot of duplication, and we can remove wrong file or folder, and of course that are so annoying.

We already know, cut feature is very important for our activities in the computer. So we need to make these feature so that our activities are easier. Fortunately, we can use Automator app to make a Cut program or service in Mac OS. This is the step :

  1. Open Automator App > New Document > Quick Action, You will see window like this :
    Screen Shot 2019-03-06 at 09.01.52.png
  2. After you choose quick action, you will see this window :Screen Shot 2019-03-06 at 09.06.36.png
    FOR CUT SERVICE
  3. In the field `Workflow Receives Current` select `files and foldres`, then in the field `in` choose `Finder`
  4. Choose library category on the left side, then drag `filter finder items` component into the workflow space, then drag component `run shell script` from `Utilities` category below `files and folders` component. Then write code like this, don’t forget in the selection field `Pass Input` choose `as argument`:Screen Shot 2019-03-06 at 09.16.08.png
  5. Save and set name as Cut

    FOR PASTE SERVICE

  6. Create new service with select menu File > New > Quick Action, like point 1 & 2
  7. On the top, In the field `workflow receives current` select `files and foldres`, then in the field in choose `Finder`
  8. In the workflow window choose Utilities Category, then drag Run Shell Script component into the workflow space. Then type this code :
    file="/tmp/CACHE.txt"
    if [[ -f $file ]] ; then
    	while IFS= read -r line
      		do
      			mv "$line" "$1"
     	done <"$file"
     	rm $file
    else
     exit 0
    fi

    Window will look like this :
    Screen Shot 2019-03-06 at 09.37.06.png

  9. Save as Paste
  10. Close all Automator window.
  11. Now you can use Cut and Paste in Finder, like this
    Screen Shot 2019-03-06 at 09.42.50.png
  12. Good Luck every one. cheers before practice. 😀
Advertisements

Published by

wzije

programmer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.