TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: A way to switch from job to leisure apps on Mac instantly

3 pointsby fosronover 10 years ago
Hey Ask HN,<p>so i have an interesting question - i need an app to switch off&#x2F;on some predefined app list (something in lines of this). I have a Macbook Air which i use for work and for leisure at home, and i have an annoying repetitive task to do - kill all apps that i mostly don&#x27;t need at home (IDE, Browser with work related tabs, GIT client, etc.) and then reopen them in the morning at work. I could leave them on, but my Mac starts to act a little crazy when i try to game a little (Yeah, on an Air) or do something else (4GB of RAM was not the best choice). It could probably be done with AppleScript (or something like that), but maybe there&#x27;s an app for that?<p>TL;DR:<p>Need an app to close&#x2F;open apps from predefined list.<p>Thanks!

3 comments

EdwardMSmithover 10 years ago
Set up two different accounts and log out&#x2F;in between them.<p>Set the various programs you need to start automatically (from dock, options -&gt; open on login)<p>Fast user switching: <a href="http://webcache.googleusercontent.com/search?q=cache:6BNJS4W0_94J:support.apple.com/kb/PH13942+&amp;cd=3&amp;hl=en&amp;ct=clnk&amp;gl=us&amp;client=safari" rel="nofollow">http:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:6BNJS4W...</a>
评论 #8558034 未加载
0942v8653over 10 years ago
<p><pre><code> $ fun=( &#x27;Preview&#x27; &#x27;QuickTime Player&#x27; ) $ work=( &#x27;Terminal&#x27; ) $ for i in &quot;${fun[@]}&quot;; do osascript -e &quot;tell app \&quot;$i\&quot; to quit&quot;; done $ for i in &quot;${work[@]}&quot;; do open -a &quot;$i&quot;; done</code></pre>
adam419over 10 years ago
If it&#x27;s a Mac create a separate desktop instance, one work related the other personal.
评论 #8557852 未加载