---
title: "Discussion on \"How I automated my macbook to help me get ready for work.\" | Hashnode"
description: "Discussion on \"How I automated my macbook to help me get ready for work.\". Using applescript and launchd to automate setting up my mac development workspace."
url: "https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I automated my macbook to help me get ready for work.](https://lorenzejay.hashnode.dev/how-i-automated-my-macbook-to-help-me-get-ready-for-work?utm_source=hashnode&utm_medium=feed)

Using applescript and launchd to automate setting up my mac development workspace.

Sep 14, 2022 · 4 min read · lorenzejay.hashnode.dev  
Read the article

-   [#automation](https://hashnode.com/tag/automation)
-   [#productivity](https://hashnode.com/tag/productivity)
-   [#apple](https://hashnode.com/tag/apple)
-   [#applescript](https://hashnode.com/tag/applescript)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

@Lorenzejay · California, US

  
[View profile](https://hashnode.com/@Lorenzejay)

Software Development | JavaScript | Applescript | Productivity Enthusiast

A web developer from Los Angeles. I build accessible, inclusive products and digital experiences for a variety of clients. Also interested in how code can be used for workspace automation &amp; productivity optimization.

## Responses 12

Markdown supported · ⌘↵ to post

[Jack Hunt](https://hashnode.com/@williamthompsonwt)

[Jul 16, 2023](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/64b3a05e01a02a8720b37338)

As you know, Apple computers are known for their reliability and durability, but sometimes a part still needs to be replaced. The first thing I did was to figure out what part I needed. My Macbook started glitching and I suspected that the problem was in the keyboard. I did some research on the internet and found that some keys were unresponsive or sticking. After more research, I concluded that I would need a replacement keyboard. After carefully selecting a supplier I proceeded to place an order. On their website [appleparts.io/macbook-pro/macbook-pro-13-a2251/,](https://appleparts.io/macbook-pro/macbook-pro-13-a2251/,) I found the correct keyboard for my model of Macbook and added it to my cart. Then I followed the checkout instructions, entered my shipping address and selected a convenient payment method. After successfully replacing the keyboard, I tested my Macbook and was pleased to see that the problem was completely fixed. The keys worked perfectly and my computer use was once again comfortable and efficient.

[Marco Wheeler](https://hashnode.com/@lawrencewalton94)

[Jul 16, 2023](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/64b39f8d01a02a8720b37303)

When I realized that I needed to replace the keyboard and battery, I decided to seek help from specialists. On Apple's official website, I found a list of authorized service centers in my city and chose the one closest to my place of residence.

[Osborn Tyler](https://hashnode.com/@OsbornTyler7)

[Jul 16, 2023](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/64b39ed701a02a8720b372d3)

Hello to all forum members. I have a macbook pro 13, I use it mainly for work, so it is indispensable for me. Recently the battery in my macbook broke. Can you tell me how to choose and where to buy a new battery?

[MCCurcio](https://hashnode.com/@MattCC)

[Sep 22, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632ce678318ff0fa1833840f)

Hold it did you guys discover BASH? Oh, just Apple stealing ideas again. ;) haha

[Jeremy Hall 🖥️ ⌨️🖱️](https://hashnode.com/@aptgetops)

[Sep 23, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632ce678318ff0fa1833840f#reply-632d4961e06c24f9f23a5dd7)

Applescript is not Bash and nor does it follow the same structure or solve things that you'd use shell scripting for.

Bash refers to the shell most Unix distributions have - the Bourne Again Shell - BASH. You are trying to talk about shell scripting (.sh) but call it Bash.

[Arthur Grishkevich](https://hashnode.com/@arrrgr)

[Sep 19, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327e0217ae3b59ef00675b0)

minor pet project mode activated

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 19, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327e0217ae3b59ef00675b0#reply-63288cba195e7dc741da5e51)

Heck yeah! There's a lot you can do with it. Go ham.

[Manuel Serafin Bugarin](https://hashnode.com/@elser)

[Sep 18, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327aefc7ae3b59ef0067158)

I didn't know apple have this capability. Thank you for sharing!

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 19, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327aefc7ae3b59ef0067158#reply-6328769e99624fc71cd51eb7)

I only found out about it 2 weeks ago. I think there's a lot of cool and interesting things you can do within the apple automation / optimizing productivity space.

[Priti Solanki](https://hashnode.com/@backendbee)

[Sep 18, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327a3c67ae3b59ef0067061)

Thank you for sharing this, I tried it and it's really amazing.

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 19, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/6327a3c67ae3b59ef0067061#reply-632876e399624fc71cd51ed5)

I'm really glad. The point of this post was to provide simple and practical applications to something pretty interesting yet not so well documented.

[Joo Hom](https://hashnode.com/@joohom)

[Sep 18, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/63268da8dd55cd8b89b20939)

Thanks for sharing 👍 Was thinking about how to save window layouts on my Mac so that I can reuse them later, now I know where to look! 🔥

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 18, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/63268da8dd55cd8b89b20939#reply-6327450c7ae3b59ef0066440)

I'm glad to hear it.

[Jakub Olek](https://hashnode.com/@hakubo)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632638cadd55cd8b89b20339)

Highly suggest checking out scriptkit. This tool can help you automate a lot!

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632638cadd55cd8b89b20339#reply-63263ea97ae3b59ef0064522)

Just took a look. I will actually give this a try. Definitely something that would make automation easier

[Jacques van Wyk](https://hashnode.com/@JacquesvanWyk)

[Sep 26, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632638cadd55cd8b89b20339#reply-63319265fef0c33425207dd2)

Hey [Jakub Olek](https://hashnode.com/@hakubo) thanks for suggestion I looked at this and was exactly what I needed.

[Jeremy Hall 🖥️ ⌨️🖱️](https://hashnode.com/@aptgetops)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/63261de6dd55cd8b89b20087)

Are you running any custom theming in MacOS? Your finder window seems more dark than my dark mode in Monterey.

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/63261de6dd55cd8b89b20087#reply-63262b317ae3b59ef0064301)

No custom theming. I will admit that my finder is not as dark as the screenshot but I wish it were.

[Jeremy Hall 🖥️ ⌨️🖱️](https://hashnode.com/@aptgetops)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/63261de6dd55cd8b89b20087#reply-632630e07ae3b59ef00643b5)

Makes sense. I wish it was that cor as well. Looks super sharp! [Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Devang Tomar](https://hashnode.com/@devangtomar)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632619e0dd55cd8b89b1ff9c)

I was looking for something similar.. thanks for sharing 🙌🔥

[Lorenze Jay Hernandez](https://hashnode.com/@Lorenzejay)

[Sep 17, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632619e0dd55cd8b89b1ff9c#reply-63262b9a7ae3b59ef0064309)

Hey I’m glad you found it useful. I struggled using launchd at first to trigger my script and there weren’t many examples online so once I did get it I made sure to document my progress

[Hargapipanet](https://hashnode.com/@hargapipanet)

[Sep 22, 2022](https://hashnode.com/posts/how-i-automated-my-macbook-to-help-me-get-ready-for-work/6321fad25483096daa0abc9e/comment/632619e0dd55cd8b89b1ff9c#reply-632c21f5e06c24f9f23a3e22)

Hargapipa.net
