TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 fosron超过 10 年前
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 条评论

EdwardMSmith超过 10 年前
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 未加载
0942v8653超过 10 年前
<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>
adam419超过 10 年前
If it&#x27;s a Mac create a separate desktop instance, one work related the other personal.
评论 #8557852 未加载