<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: No AppleScript &#8216;Mute&#8217;?</title>
	<atom:link href="http://nslog.com/2005/06/26/no_applescript_mute/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2005/06/26/no_applescript_mute</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:40:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-68245</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Sun, 02 Oct 2011 17:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-68245</guid>
		<description>My two scripts - which work in Lion just fine - are:

&lt;strong&gt;.script-night.app:&lt;/strong&gt;

&lt;pre&gt;tell application &quot;System Events&quot;
    if exists (process &quot;ScreenSaverEngine&quot;) then
        tell application &quot;System Events&quot; to set volume with output muted
    end if
end tell&lt;/pre&gt;

&lt;strong&gt;.script-morning.app:&lt;/strong&gt;

&lt;pre&gt;tell application &quot;System Events&quot; to set volume without output muted&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>My two scripts - which work in Lion just fine - are:</p>
<p><strong>.script-night.app:</strong></p>
<pre>tell application "System Events"
    if exists (process "ScreenSaverEngine") then
        tell application "System Events" to set volume with output muted
    end if
end tell</pre>
<p><strong>.script-morning.app:</strong></p>
<pre>tell application "System Events" to set volume without output muted</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glen</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-68229</link>
		<dc:creator>Glen</dc:creator>
		<pubDate>Fri, 30 Sep 2011 11:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-68229</guid>
		<description>FYI, under Lion the above script no longer works but simply modifying it to what is below does:

&lt;blockquote&gt;
tell application &quot;System Events&quot;
	
	tell process &quot;System Preferences&quot;
		
		click checkbox &quot;Mute&quot; of window &quot;Sound&quot;
		
	end tell
	
end tell
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>FYI, under Lion the above script no longer works but simply modifying it to what is below does:</p>
<blockquote><p>
tell application "System Events"</p>
<p>	tell process "System Preferences"</p>
<p>		click checkbox "Mute" of window "Sound"</p>
<p>	end tell</p>
<p>end tell
</p>
</blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel&#8217;s Exhaust &#187; Making your Mac wake up quietly</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-57090</link>
		<dc:creator>Michel&#8217;s Exhaust &#187; Making your Mac wake up quietly</dc:creator>
		<pubDate>Wed, 17 Feb 2010 14:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-57090</guid>
		<description>[...] thanks to the commenters on Erik Barzeski&#8217;s blog for the AppleScript and Bernhard Baehr for sleepwatcher. You can use similar tricks to get rid of [...]</description>
		<content:encoded><![CDATA[<p>[...] thanks to the commenters on Erik Barzeski&#8217;s blog for the AppleScript and Bernhard Baehr for sleepwatcher. You can use similar tricks to get rid of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WillGonz</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-47901</link>
		<dc:creator>WillGonz</dc:creator>
		<pubDate>Mon, 02 Jun 2008 01:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-47901</guid>
		<description>Awesome PMcM.  I used that for an automator script to mute the sound before a task and then unmute it.

Thanks</description>
		<content:encoded><![CDATA[<p>Awesome PMcM.  I used that for an automator script to mute the sound before a task and then unmute it.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PMcM</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15968</link>
		<dc:creator>PMcM</dc:creator>
		<pubDate>Wed, 13 Jul 2005 14:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15968</guid>
		<description>How about &lt;code&gt;osascript -e &#039;set volume output muted true&#039;&lt;/code&gt; and &lt;code&gt;osascript -e &#039;set volume output muted false&#039;&lt;/code&gt;?


</description>
		<content:encoded><![CDATA[<p>How about <code>osascript -e 'set volume output muted true'</code> and <code>osascript -e 'set volume output muted false'</code>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Linde</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15967</link>
		<dc:creator>Samuel Linde</dc:creator>
		<pubDate>Mon, 27 Jun 2005 05:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15967</guid>
		<description>I misread you as well, Erik. Sorry if I sounded a bit harsh. ;-) I thought your cron job were running a .scpt file via osascript.

Bo&#039;s solution is of course the way to go in your case.</description>
		<content:encoded><![CDATA[<p>I misread you as well, Erik. Sorry if I sounded a bit harsh. <img src='http://nslog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I thought your cron job were running a .scpt file via osascript.</p>
<p>Bo's solution is of course the way to go in your case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15966</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Sun, 26 Jun 2005 22:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15966</guid>
		<description>Yeah, that&#039;ll work. I read his answer quickly and thought he&#039;d just wrapped the two &lt;code&gt;set volume&lt;/code&gt; commands inside an &lt;code&gt;if&lt;/code&gt; statement. My bad.</description>
		<content:encoded><![CDATA[<p>Yeah, that'll work. I read his answer quickly and thought he'd just wrapped the two <code>set volume</code> commands inside an <code>if</code> statement. My bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bo</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15965</link>
		<dc:creator>Bo</dc:creator>
		<pubDate>Sun, 26 Jun 2005 21:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15965</guid>
		<description>Based on what Samuel said, what&#039;s wrong with just using tell application &quot;System Events&quot; to set volume with output muted at 10pm and tell application &quot;System Events&quot; to set volume without output muted at 7am?   He obviously found the setting you were looking for; you just have to package it up correctly.</description>
		<content:encoded><![CDATA[<p>Based on what Samuel said, what's wrong with just using tell application "System Events" to set volume with output muted at 10pm and tell application "System Events" to set volume without output muted at 7am?   He obviously found the setting you were looking for; you just have to package it up correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Linde</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15963</link>
		<dc:creator>Samuel Linde</dc:creator>
		<pubDate>Sun, 26 Jun 2005 21:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15963</guid>
		<description>Really worth what? 6 lines of code?

Are you running Tiger? This might work with Panther as well, haven&#039;t checked though.

&lt;pre&gt;set myVolume to get volume settings
if output muted of myVolume is false then
    set volume with output muted
else
    set volume without output muted
end if&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Really worth what? 6 lines of code?</p>
<p>Are you running Tiger? This might work with Panther as well, haven't checked though.</p>
<pre>set myVolume to get volume settings
if output muted of myVolume is false then
    set volume with output muted
else
    set volume without output muted
end if</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2005/06/26/no_applescript_mute#comment-15964</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Sun, 26 Jun 2005 20:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/06/26/no_applescript_mute/#comment-15964</guid>
		<description>As I&#039;ve said, Samuel, this is in a cron job via osascript. Any more than one line is &quot;too much,&quot; particularly when I spend 95% of my time at &quot;3.5&quot; volume. I&#039;m merely talking about the lack of a good &quot;mute&quot; option in other situations when it may be handy without reverting to work-arounds.</description>
		<content:encoded><![CDATA[<p>As I've said, Samuel, this is in a cron job via osascript. Any more than one line is "too much," particularly when I spend 95% of my time at "3.5" volume. I'm merely talking about the lack of a good "mute" option in other situations when it may be handy without reverting to work-arounds.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

