setting the system volume - very strange

Sarah Reichelt sarah.reichelt at gmail.com
Sun Jun 24 21:31:52 CDT 2007


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.



More information about the use-livecode mailing list