setting the system volume - very strange

Mike Hughes hughesmike2 at hotmail.com
Mon Jun 25 00:30:21 EDT 2007


Hi Sarah,

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?

Thanks,

Mike


>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
>time?
>
>You might like to test it in a button, perhaps making it two lines:
>
>on mouseUp
>   put "set volume alert volume 0" into tAS
>   do tAS as AppleScript
>end mouseUp
>
>Cheers,
>Sarah
>
>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 
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution

_________________________________________________________________
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm




More information about the use-livecode mailing list