# How get a sketch to run on startup of a Mac

**URL:** https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052
**Category:** Processing
**Created:** [September 1, 2021, 4:48pm UTC](https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052 "2021-09-01T16:48:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GeorgeRoland](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@GeorgeRoland](https://discourse.processing.org/u/GeorgeRoland)
#### Post date: [September 1, 2021, 4:48pm UTC](https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052/1 "2021-09-01T16:48:46Z")

</div>

I used Export Application in Processing to create an app. No errors were generated when it was created. This app runs fine if you click on it. However, if I put it in Login Items in an account set to auto login, the system tries to launch the app on machine startup, but quits unexpectedly. (The app’s icon appears briefly in the Dock, bounces a couple of times and quits.)

Is there a reliable way to get a sketch to run when an auto-login account is launched?

I am using a Macintosh.

Thanks,

George Roland

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [September 1, 2021, 5:57pm UTC](https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052/2 "2021-09-01T17:57:08Z")

</div>

This is related to 😉 :

> [@Apps in Login Items on Mac do not launch](https://discourse.processing.org/t/apps-in-login-items-on-mac-do-not-launch/31995):
>
> I am using a Macintosh When I place a Processing App in the Login Items to launch at startup, it does not launch. The App icon appears in the Dock and bounces a couple of times as though it is starting to launch, but then it disappears and the app does not launch. Can anyone explain why this doesn’t work? Thanks

---

<div class="post-metadata">

### Author: ![GeorgeRoland](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@GeorgeRoland](https://discourse.processing.org/u/GeorgeRoland)
#### Post date: [September 1, 2021, 6:30pm UTC](https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052/3 "2021-09-01T18:30:32Z")

</div>

Yes it is. I thought perhaps by stating it a little differently I might stumble upon someone who has been able to get this to work.

I am a visual artist and it would be so wonderful in exhibition situations if I were able to provide the gallery with a monitor and computer that, when the computer was turned on, the work would run without further fussing. It seems that ought to be easy to do, but apparently it is not, at least at my skill level.

I found one article that seemed related, but the author assumed a lot more knowledge that I have. He talked about making a “bash” script. I have no idea what that means, for example.

Cheers

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [September 1, 2021, 11:08pm UTC](https://discourse.processing.org/t/how-get-a-sketch-to-run-on-startup-of-a-mac/32052/4 "2021-09-01T23:08:54Z")

</div>

> [@GeorgeRoland](#):
>
> I found one article that seemed related, but the author assumed a lot more knowledge that I have. He talked about making a “bash” script. I have no idea what that means, for example.

Yes, if you want to investigate on that way, this post is quite clear:

> <https://stackoverflow.com/questions/6442364/running-script-upon-login-in-mac-os-x/13372744#13372744>

And if you are not familiar with the command line and bash/shell you should because it’s a great tool to learn (even for non programmers)! 😋
