1

I would like to rename the "screencapture" utility triggered with the shift+cmd+3 keys, in order to take screenshots from a program that recognizes and disables this utility.

Specifically, I want a different name to appear under ps when that utility is running.

Is there a way to rename or alias this utility system-wide?

  • What do you mean by "rename?" – njboot Jun 2 '14 at 22:50
  • Change the name of the process as it would appear in ps – user2398029 Jun 5 '14 at 0:36
  • 1
    Okay, the question is clear, but I don't see the logic. Why would you need to rename the process in order for another program to implement it? What program? – njboot Jun 5 '14 at 0:59
  • I have a program that blocks screenshots, and it uses the name "screencapture" to detect the utility. I want to bypass that. – user2398029 Jun 5 '14 at 1:14
  • 2
    What kind of broken program do you have ? If I were you, I would rather try to fix this program, or to replace it, or to circumvent its blocking. For this last option, I can advise you. A program must not block you from taking screen photos. And you don't have to risk breaking your system because of such program. Mac OS X is very sensitive to his native names now. Fiddling with them is generally ill-advised. – Nicolas Barbulesco Jun 5 '14 at 9:28
2

I think it is not that easy, but it is possible.
When calling

which screencapture

I get

/usr/sbin/screencapture

I enter sudo mode and cd to /usr/sbin

sudo su
cd /usr/sbin

I rename the screencapure programm :

mv screencapture capturescreen

And after that, I create a symlink to the old one:

ln -s capturescreen screencapture

now when calling capturescreen, It is called capturescreen. But when doing CMD+Shift+3, I get the screencapture process.

But You could fix that with creating a Service in Automator and create a Shell-Script-Action, simply calling "capturescreen ~/Desktop/Output.png"

And after that in the System-Preferences, Assign a Shortcut to the Service.

But you could also simply call Terminal and enter "capturescreen ~/Desktop/Output.png"

Even further, you can modify the screencapture action in automator to get the timestamp back and use it as the main tool for schooting screenshots.

1

Tho you said "rename" I'm thinking you mean "remap". You want to be able to use shift+cmd+3 to trigger a different app to take screenshots...

This can be managed in the Keyboard System Preference.

You can change the current key combination for snapshots and add your own shortcuts for other Apps.

See screenshot from 10.9.3

enter image description here

  • No, I want to change the name of the process. – user2398029 Jun 5 '14 at 0:37
  • He does not want to remap it, he wants to have a different process name when calling ps in temrinal – rwenz3l Jun 5 '14 at 7:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .