Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureRequest] Run script upon start of application (for type status bar) #272

Open
phloggu opened this issue May 20, 2024 · 6 comments
Open

Comments

@phloggu
Copy link

phloggu commented May 20, 2024

Please add the following Feature: Run the script when the application is launched (probably needed only for app type status bar).

When I start an application made with Platypus with the "status bar" UI, it does not call the script bound to the app. The script gets called after the user clicked on the status bar icon. I would like to let the script get executed already when the app gets started by the user.

For this purpose Platypus should have a new option "execute script upon start", which calls the script with an argument "start-up" or similar or maybe a configurable keyword as soon as the app created by Platypus gets executed.

(edit: removed app type droplet from request, it does not apply)

@Bill-Costa
Copy link

Bill-Costa commented May 21, 2024 via email

@phloggu
Copy link
Author

phloggu commented May 21, 2024

It does already work with a droplet: The script gets called when the starts up. Thank you for pointing it out.
Do you see a possibility for a status bar app, did I miss something there as well?

@phloggu phloggu changed the title [FeatureRequest] Run script upon start of application (for type status bar and droplet) [FeatureRequest] Run script upon start of application (for type status bar) May 21, 2024
@Bill-Costa
Copy link

Bill-Costa commented May 21, 2024 via email

@phloggu
Copy link
Author

phloggu commented May 21, 2024

My app shows predefined entries to mount a remote file system under a status bar icon. Clicking on one of them connects, resp. disconnects, when it is already connected. I would like to add a new feature to connect an entry upon start of the app. For this to work my script should be called when the app starts.

@Bill-Costa
Copy link

Bill-Costa commented May 21, 2024 via email

@michaelherger
Copy link

I'm in the same boat as @phloggu: I'd like to start a service when the menubar item is launched.

Maybe I'll have to create a regular application as a startup helper, which, when executed, would run the service and start the menubar item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants