Embed Command Line Tool in Mac App

  Рет қаралды 5,100

AppleProgramming

AppleProgramming

Күн бұрын

How to embed a command line tool within a Cocoa or SwiftUI Mac app. We'll see how we can use the GUI app to install a command line tool so that we can execute it via Terminal.
Part 2: • Command Line to Mac Ap...
Part 3: • Launch App from your C...
CommandMe (this app) repo: github.com/luc...
GitUp repo referenced: github.com/git...
Twitter: / lucasderraugh
GitHub: github.com/luc...
Patreon: / appleprogramming
Site: appleprogrammin...

Пікірлер: 21
@jordibruin
@jordibruin 3 жыл бұрын
The timing for this tutorial couldn't have been better!
@aafaqahmed2265
@aafaqahmed2265 3 жыл бұрын
Eager to catch next one!
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Coming out real soon.
@aafaqahmed2265
@aafaqahmed2265 3 жыл бұрын
@@AppleProgramming thanks!
@akashrevanna5327
@akashrevanna5327 3 жыл бұрын
Great way of explaining 🙏🙂
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Thanks! Come back next week for part 2!
@franciscooliveira9353
@franciscooliveira9353 7 ай бұрын
Hi, First of all great tutorial. I was wondering if u could help me with my project by adding another scripts to run, in short I have to run 2 independent scripts, Thanks
@joosh3213
@joosh3213 2 жыл бұрын
where do i find the developer support folder
@SkaterStimm
@SkaterStimm 3 жыл бұрын
Can you deploy these on the App Store? I haven’t been able to do this. However we do use it a ton for testing.
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Unfortunately I don’t believe this is possible, but I’ll do a bit more digging.
@excellence7018
@excellence7018 Жыл бұрын
Thank you for this tutorial. Is it possible to 1) check and 2) call other command line tools from a macOS GUI? I would like to do a .usdz conversion using Apples pyhton tools.
@AppleProgramming
@AppleProgramming Жыл бұрын
If you want to call other command line tools, then using NSTask is the way to go.
@artificeindustries
@artificeindustries 3 жыл бұрын
Great tutorial! Thanks! Do you think it would be possible to make it work with entitlements?
@AppleProgramming
@AppleProgramming 3 жыл бұрын
Unfortunately I don’t believe this is possible, but I’ll do a bit more digging.
@nickshv8727
@nickshv8727 3 жыл бұрын
How to change installation process to use CLI with app which is downloaded from AppStore? I heard it is possible with 'alias', but how?
@AppleProgramming
@AppleProgramming 3 жыл бұрын
One day I'll probably follow up this mini-series with an App Store approach. All the App Store approaches ultimately involve your customer going into Terminal to "install" the tool. I guess you could either create an alias in your ~/.zshrc file (looks something like alias commandme="/Applications/.../commandme'"). Alternatively you can manually have the user execute the install script that we wrote in this series.
@nickshv8727
@nickshv8727 3 жыл бұрын
@@AppleProgramming It would be great. I decided to use instructions with symlink command and copy button) But of course, better to do it without asking to go to the terminal, if possible)
@pmishraofficial
@pmishraofficial 2 жыл бұрын
Why are tutorials made with such low voice? If you record with mic close to your mouth, you will end up speaking as if you’re talking to the person directly in his ear. The output is a monotonous unclear voice. This video is very helpful but the voice in most videos is too dull
@AppleProgramming
@AppleProgramming 2 жыл бұрын
Just my voice. Making it louder will not change that 😅
@pmishraofficial
@pmishraofficial 2 жыл бұрын
@@AppleProgramming your voice is great. A different voice delivery will make it better. Next time consider that the person you're talking to is sitting in front of you, a bit further away. Keep the mic slightly away from usual position (a few inches more). I'm hoping this can help :)
@reculify
@reculify Жыл бұрын
@@AppleProgrammingI’d rather your voice be deep than have it be high pitched and annoying. 👍
Command Line to Mac App Communication
21:32
AppleProgramming
Рет қаралды 2,7 М.
Swift CommandLine with ArgumentParser
34:04
Stewart Lynch
Рет қаралды 4,4 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 113 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,7 МЛН
Can Swift Replace Bash (for Scripting)? | @SwiftBird
20:18
The Swift Bird
Рет қаралды 2,8 М.
Notarize using notarytool
8:06
AppleProgramming
Рет қаралды 6 М.
DispatchWorkItem
12:15
AppleProgramming
Рет қаралды 2,4 М.
I ranked EVERY terminal emulator. It was nuts
20:35
typecraft
Рет қаралды 87 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 166 М.
Execute Terminal Commands in Swift MacOS app
13:46
Kelvin
Рет қаралды 2 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 641 М.
Is the Ghostty terminal worth the hype?
15:21
typecraft
Рет қаралды 77 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 250 М.