Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

H2SO4

macrumors 603
Original poster
Nov 4, 2008
5,892
7,300
Hi all, hope well. After an opinion from some of you if you'd be so kind.

So whilst yes over the years I've used terminal numerous times, I've never 'coded', per se. I've bought some hardware and all I'd like to do, (for now), is to send commands to it that I'd normally send over the GUI.
The menu for their forum software section is pictured below;

Screenshot 2025-01-09 at 15.10.36.jpg


So I have the app runinng, I send a command using one of the interfaces pictured and the application reacts in real time. If anybody has done something like this which avenue of those would you recommend?

TIA.
 
Are you asking which programming language to use?

When you say "I have the app running" - which "app" do you have running and what sort of reaction do you have in mind?
 
Are you asking which programming language to use?
Hi, yes.
So there appears to be a number of options that can be used to control the app and I'm wondering in the opinion of someone that programs what might be best to use in the hope that I can learn something that's reasonably straightforward, widely in use and that I may be able to apply to other computing needs.

When you say "I have the app running" - which "app" do you have running and what sort of reaction do you have in mind?
In those particular instance, I'm talking about Picoscope, and it's really being able to send commands quickly and efficiently in an automated fashion.
Usually I have more that one instance of the app running and I might want to very quickly send commands 1, 2 and 3 to app instance 1, followed by commands 1,2 and 5 to app instances 2 and 3.
It's often a PITA to send commands that may be deep within menus.

I have Windows, can easily install Linux but would prefer to use MacOS.
 
If Picoscope is running as a GUI application under MacOS it would have to be written specifically to accept commands from the terminal - do you know that to be the case?

I would recommend that you start by getting familiar with commands that run on the terminal rather than looking for a programming language - if you Google "MacOS terminal commands" you should find some basic tutorials that will get you started.

Once you get beyond terminal commands and the terminal scripting language then Swift (and SwiftUI) would be the modern preferred programming language(s) for MacOS applications.
 
If Picoscope is running as a GUI application under MacOS it would have to be written specifically to accept commands from the terminal - do you know that to be the case?

I would recommend that you start by getting familiar with commands that run on the terminal rather than looking for a programming language - if you Google "MacOS terminal commands" you should find some basic tutorials that will get you started.

Once you get beyond terminal commands and the terminal scripting language then Swift (and SwiftUI) would be the modern preferred programming language(s) for MacOS applications.
Appears that it is. That shippet above shows the methods people already use to interact with it.
There's an api for it.

Just looking for a recommendation as to what programming language might be most useful as well as being quick to learn for basic instructions.
 
Looking at the Picoscope API samples I'd say that either Python or Microsoft Basic VBA would probably be the easiest options to learn. Python might be the one that would be of most use to you in the future.
 
Looking at the Picoscope API samples I'd say that either Python or Microsoft Basic VBA would probably be the easiest options to learn. Python might be the one that would be of most use to you in the future.
Hello again. Thanks for that. I'll give Python a shot and see how I get on.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.