Yes, doing that from Terminal is is totally possible. It's when you're in Finder that you need to fiddle with the keyboard. Copying a file in Finder and pasting it in Terminal gives you an absolute path, so you can use that in a script where you wait for a path argument, but I find that when I'm on the GUI side it's faster to call a GUI side script with Spotlight (or any other utility launcher that takes a selection as argument).
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Yes, doing that from Terminal is is totally possible. It's when you're in Finder that you need to fiddle with the keyboard. Copying a file in Finder and pasting it in Terminal gives you an absolute path, so you can use that in a script where you wait for a path argument, but I find that when I'm on the GUI side it's faster to call a GUI side script with Spotlight (or any other utility launcher that takes a selection as argument).