sketchtrial icon indicating copy to clipboard operation
sketchtrial copied to clipboard

Create Automator script like App (Running with administrator privileges)

Open elminson opened this issue 6 years ago • 4 comments

Just for educational purposes.

  1. Open Automator (use Finder)
  2. Select New => Application (Set the name for the app, in my case "Sketchv2"
  3. Under Actions Search Bar, select Run AppleScript and drag to the right panel (Or double click)
  4. Add this to the text area (Remove any previews content inside the text area)(Remember to replace PATHTOTHISREPO with the full path where is this repo is in your mac) do shell script "sudo /PATHTOTHISREPO/sketchtrial/sketch.sh" with administrator privileges
  5. You can press the play button to test.
  6. Click on File => Convert To => Application
  7. Move the new Application to "Applications" folder
  8. you can add the new application to your docker
  9. you can change the icon Following this link https://9to5mac.com/2019/01/17/change-mac-icons/

#notanIssue

elminson avatar Apr 05 '19 17:04 elminson

Thank you. You can add it to the readme if you wish, I'll accept PR.

gch1p avatar Apr 06 '19 15:04 gch1p

Thanks @gch1p! PR Created!

elminson avatar Apr 06 '19 15:04 elminson

Very nice addition! Thank you :)

daanvr avatar Jul 17 '19 08:07 daanvr

Thank my brother

1729patrick avatar Oct 09 '19 12:10 1729patrick