PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 19, 2022

[FIXED] How to run an app always admin mode in Mac?

 October 19, 2022     admin, administrator, macos, windows     No comments   

Issue

I need to run DBeaver admin mode but instead of running the app via terminal, I need to run via shortcut as admin mode.

So, is it possible in Mac as in Windows?


Solution

Yes, you can run the app with sudo(admin mode in your word) permission with the help of the built-in App: Script Editor.

With Script Editor app open, paste this line:

do shell script "open /System/Applications/Stickies.app" user name "YOUR_USER_NAME" password "YOUR_PASSWORD" with administrator privileges

I'm taking the app Stickies.app as an example. Replace it with your own user-mode app

When edit is done, choose Menu -> File -> Export to export it as an Application.

enter image description here

Then you will get an executable "sudo" version of your application at your exported location.

enter image description here

Congrats



Answered By - kakaiikaka
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing