Open any app or file
3 posters
Page 1 of 1
Open any app or file
It would be very useful to have a script action to open/activate any app or file.
Something like:
[(midi:cc,1,1) {launch:/Applications/StatusBar_GlobalMute.app}]
or
[(midi:cc,1,1) {launch:/Users/jordi/KH/boqod FAS/boqod FAS Database.ods}]
If the app/file is not running/opened, the action would open it. If the app/file is already running/opened, the action would bring it to the front.
Something like:
[(midi:cc,1,1) {launch:/Applications/StatusBar_GlobalMute.app}]
or
[(midi:cc,1,1) {launch:/Users/jordi/KH/boqod FAS/boqod FAS Database.ods}]
If the app/file is not running/opened, the action would open it. If the app/file is already running/opened, the action would bring it to the front.
jordikt- Posts : 290
Join date : 2024-02-10
Re: Open any app or file
It's off-topic because the plugin was built to handle Midi. Period. It handles Midi communication and the Stream Deck button/dial displays.
Technically, it is, of course, possible to extend the Midi plugin to handle all sorts of tasks on the computer: open files, start programs, start and stop processes, move windows, create/copy/delete files, create/copy/delete folders, edit files, control other things than Midi, and so on. But it's like starting to integrate the complete Stream Deck infrastructure into the plugin.
An option to open files and programs is a first step in that direction, and I don't know if that's where I want to put the developer resources. I'd rather focus on extending the plugin's Midi capabilities.
Technically, it is, of course, possible to extend the Midi plugin to handle all sorts of tasks on the computer: open files, start programs, start and stop processes, move windows, create/copy/delete files, create/copy/delete folders, edit files, control other things than Midi, and so on. But it's like starting to integrate the complete Stream Deck infrastructure into the plugin.
An option to open files and programs is a first step in that direction, and I don't know if that's where I want to put the developer resources. I'd rather focus on extending the plugin's Midi capabilities.
Re: Open any app or file
I see it in a different way.
IMO, an action for running an app is equivalent/similar to the current keystroke action {key:}. You could consider that both actions are not related with the midi world, but both are extremely useful.
In fact, running apps and controlling shortcuts has been always available actions in the main midi apps.
One of the main advantages of running apps from a midi software is that users can create and run their own apps for executing specific tasks, to control other things than Midi.
So (taking the examples of your previous post), if a user wants to start or stop a process, move a window, create/copy/delete files, create/copy/delete folders, edit files, etc. after receiving a midi message, he could do it creating an specific app for that task.
In summary, an scripting action for running apps would allow users to configure its system as they need. In my case, I would like to show some dialogs and notifications after pressing buttons or after receiving midi messages.
Let me finish saying that I don't think that an action for running apps is an opened door to loose the focus and extend the midi plugin to a long list of tasks on the computer. I think it's the opposite: running apps and managing keystrokes closes the door to that, as users that can manage apps and keystrokes can do anything they need.
IMO, an action for running an app is equivalent/similar to the current keystroke action {key:}. You could consider that both actions are not related with the midi world, but both are extremely useful.
In fact, running apps and controlling shortcuts has been always available actions in the main midi apps.
One of the main advantages of running apps from a midi software is that users can create and run their own apps for executing specific tasks, to control other things than Midi.
So (taking the examples of your previous post), if a user wants to start or stop a process, move a window, create/copy/delete files, create/copy/delete folders, edit files, etc. after receiving a midi message, he could do it creating an specific app for that task.
In summary, an scripting action for running apps would allow users to configure its system as they need. In my case, I would like to show some dialogs and notifications after pressing buttons or after receiving midi messages.
Let me finish saying that I don't think that an action for running apps is an opened door to loose the focus and extend the midi plugin to a long list of tasks on the computer. I think it's the opposite: running apps and managing keystrokes closes the door to that, as users that can manage apps and keystrokes can do anything they need.
jordikt- Posts : 290
Join date : 2024-02-10
Re: Open any app or file
I expected the "key action" argument.
OK, I'll add it to the wish list. I am a bit worn out and low on energy after my mother's demise, so I'm struggling to finalize the 3.12 release.
After the release of 3.12, I need a break, and after that, I can take a look at what to do next.
OK, I'll add it to the wish list. I am a bit worn out and low on energy after my mother's demise, so I'm struggling to finalize the 3.12 release.
After the release of 3.12, I need a break, and after that, I can take a look at what to do next.
Re: Open any app or file
I know you are going though a bad time, I can feel it.Admin wrote:I am a bit worn out and low on energy after my mother's demise, so I'm struggling to finalize the 3.12 release.
I strongly support your decission to make a break after next release. Take care of yourself and rest all the time you need. You deserve it. Just come back when you feel it's the time to do it!
jordikt- Posts : 290
Join date : 2024-02-10
Re: Open any app or file
Yes, Have a good rest ! You really deserve it.
I'll be delighted to contribute when it's time to discuss the next steps.
I'll be delighted to contribute when it's time to discuss the next steps.
thx538- Posts : 130
Join date : 2023-10-23
Re: Open any app or file
jordikt wrote:...If the app/file is not running/opened, the action would open it. If the app/file is already running/opened, the action would bring it to the front.
Would it still be interesting if it cannot detect if the app is already running? I can't see any reliable way to do that, especially not on a Mac.
Re: Open any app or file
Yes, it's ok if the action only launches the app.Admin wrote:Would it still be interesting if it cannot detect if the app is already running?
Just an idea: maybe it's not necessary to know if the app is running or not. For example, the following line of AppleScript launches the app if it's not running or moves it to the frontmost if it's already running. So you don't need to know if it's running or not:
tell application "nameOfTheApp" to activate
In Applescript it's easy to know if an app is running or not:
if application "nameOfTheApp" is running then
--action if running
else
--action if not running
end if
Don't know if this information helps... My knowledge is limited to AppleScript...
jordikt- Posts : 290
Join date : 2024-02-10
Similar topics
» Open Source the plugin
» Clear log file
» RME TotalMix Translation File
» Translation File for Reaper?
» Background Script without file
» Clear log file
» RME TotalMix Translation File
» Translation File for Reaper?
» Background Script without file
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum