setting the system volume - very strange
hughesmike2 at hotmail.com
Sun Jun 24 23:50:37 CDT 2007
I solved the issue. It turns out that my AppleEvent handler was intercepting
and foiling my AppleScript calls to change the system volume. I just put a
"pass AppleEvent" at the end of the handler and the problem was solved --
Bob's your uncle.
>From: "Mike Hughes" <hughesmike2 at hotmail.com>
>Reply-To: How to use Revolution <use-revolution at lists.runrev.com>
>To: use-revolution at lists.runrev.com
>Subject: Re: setting the system volume - very strange
>Date: Mon, 25 Jun 2007 04:30:21 +0000
>Thanks for your reply. I've dug a little deeper into the issue and am even
>more confused. When I create a brand new stack, the AppleScripts to adjust
>the volume work fine.
>However, in the stack where I actually want the volume setting, ALL
>AppleScripts tend to work except for volume setting ones. Its really weird.
>I even tried executing the volume setting AS in the first line of the
>preOpenStack handler in the main stack and still got a compiler error.
>Does anyone know what types of conditions could exist to generate a
>compiler error in one stack and not in another with the same one-line AS?
>>From: "Sarah Reichelt" <sarah.reichelt at gmail.com>
>>Reply-To: How to use Revolution <use-revolution at lists.runrev.com>
>>To: "How to use Revolution" <use-revolution at lists.runrev.com>
>>Subject: Re: setting the system volume - very strange
>>Date: Mon, 25 Jun 2007 12:31:52 +1000
>>On 6/25/07, Mike Hughes <hughesmike2 at hotmail.com> wrote:
>>>I'm trying to manipulate the alert volume on my Mac via an AppleScript in
>>>Revolution. I try this:
>>>set volume alert volume 0
>>>and this command works perfectly fine in AppleScript's Script Editor.
>>>However, when I try it in Revolution in the msg box:
>>>do "set volume alert volume 0" as AppleScript
>>>I get a compiler error! What's up with that?
>>It works fine here Mike. Is there some strange character that might
>>have crept in? Are you trying to do another AppleScript at the same
>>You might like to test it in a button, perhaps making it two lines:
>> put "set volume alert volume 0" into tAS
>> do tAS as AppleScript
>>P.S. I notice that the System Preference display does not update live.
>>You have to go to a different pane and then back to Sound to get it to
>>show the new setting.
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>Please visit this url to subscribe, unsubscribe and manage your
>Get a preview of Live Earth, the hottest event this summer - only on MSN
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
Dont miss your chance to WIN $10,000 and other great prizes from Microsoft
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/
More information about the use-livecode