Skip to main content

Copying Multiple Content Simaltaneously





We often used to thank  Larry Tesler  for his splendid invention "Cut/Copy/Paste". Think of the world without copy/paste :o :o :o

Have you ever tried copying non-sequential content?

Ctrl+v will paste the last copied content in the clipboard, whereas ctrl+c copies the content that are selected sequentially  to the clipboard.

What if I wanted to copy multiple content from multiple web pages and pasting it in one go, instead of pasting one by one? Or without using paste command copy the multiple content directly to a file?

Here is the solution for the Mac Users. [Windows user? Working on it. Will update asap ;) ] 

Follow the steps below, which takes less than five minutes and save several minutes ;)

1)   Launch “Automator”
2)    Choose “Utilities” in the left pane
3)    Double Click “Run Shell Script”
4)    The “Run Shell Script” will be added to the right pane.
5)    Add the following script in the script content.

for f in "$@"
do
echo "$f" >> /Users/pthiaga/Desktop/cmp.txt
done
cat /Users/pthiaga/Desktop/cmp.txt

[You can use any file name here]






6)  Double click on the “Get value of Variable”
7)  Add a variable named “Some variable”[any name J]
8)  Double click on the “Copy to Clipboard”. Apple script can also be used to copy to clipboard.
9)   Save the utility with a name, say “Multiple copy to Clipboard”
10) Choose “Output replaces selected text”
11) Go to “System preference” -> “Keyboard”
12) Choose “Shortcuts".
13) Select “Services” in the left pane


14) Select the utility name which you saved and enter any new keyboard shortcut. For eg:             Cmd+Option+Y. [Note – Use the command that is not used by the system already.]
15) That’s it! Done. Yayy!! 




Now, try copying text from multiple places using the shortcut (Cmd+Option+Y) and check the file used in the script. All the contents will be copied to the file. You can also use “Cmd+V” to paste all the contents from clipboard.

Copying first text using “Cmd+Option+Y”


Copying second text using “Cmd+Option+Y”
Trying “Cmd+V” paste combined content of both the copies.


Also check the file which shows the combined content.



Now, what if you want to copy contents by removing the previous content of the file?1) Create new utility with “No Input”.
2) Add “Ask for confirmation” to a new utility
3) Add “Run Shell Script” and add the following script:
       > /Users/pthiaga/Desktop/cmp.txt
      4) Save it with new name, say “StartFreshCMT”



5) Go to Keyboard shortcut and add a shortcut for this utility. I used “Cmd+Ctrl+Y”


6) That’s it. Now you can copy contents simultaneously to same file however you want.


Trying command “Cmd+Ctrl+Y”, which shows the alert “Wanna start copying afresh”.


Clicking “OK”.

Now, copying content using the copy utility shortcut that was created above “Cmd+Option+Y”.


Check the file which erase the previous content and copy the fresh content.


Steps for windows coming soon J


Comments

Popular posts from this blog

#iOS8 #XCode6 #SizeClasses

       In Xcode 6, new feature called "Size classes" have been introduced. The size classes are used for making the storyboard compatible for all iOS Devices(iPhone & iPad, even iPod) in both portrait as well as Landscape orientations. To set the size class: 1) Choose "Universal" option while creating the project. 2) Check the auto layout checkbox in Main.storyboard -> File Inspector -> "Use Auto Layout" 3) Check the size classes check box in Main.storyboard -> File Inspector -> "Use Size Classes". There are two types of size classes: Regular and Compact. Hence the different configurations(screen sizes) include, 1) wAny hAny - Base configuration 2) wCompact hRegular - iPhone Portrait 3) wCompact hCompact - iPhone Landscape 4) wRegular wAny - iPad Landscape and portrait On selecting the base configuration, the storyboard works the same in all devices. This can be viewed in "preview" option in the assis

Unity Upgrade 2017.2 and above

Hello  Unity Developers , Recently, I faced few issues with Unity Editor and I hope sharing it will help. What was I trying to do? Scenario? Upgrading to Unity 2017.2 & Unity 2017.3 I was trying to upgrade one of my project from Unity 2017.1.2 version to Unity 2017.2.1f1. On doing so, usually unity automatically updates the obsolete scripts to support new APIs. Once it got updated, I tried to play the game in editor and it worked. Then, what was the problem? While building the project to UWP application, there were some compile errors where Unity.VR need to be updated to Unity.XR. I fixed those errors, quit unity and tried building again.  Wait, Why did I quit Unity and then built it again? Its because unity has this weird issue, when there are compiler errors. Though I had fixed the errors, on building it again, the errors will not go away. We have to quit unity and then build it, TADA, the error will go away. Now coming back to other issues I fa

Container View - Multiple View Controllers

       By default, Each Container View can have one child view controller only. Only one controller can be added to container using "Embed segue".       In order to add multiple view controller,  the following may help:      Use a separate container view controller and add it using embed segue to the container view. Now from the container view controller that is created, perform transition to different child view controllers using custom segues.