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" <[EMAIL PROTECTED]>
Reply-To: How to use Revolution <[email protected]>
To: "How to use Revolution" <[email protected]>
Subject: Re: setting the system volume - very strange
Date: Mon, 25 Jun 2007 12:31:52 +1000

On 6/25/07, Mike Hughes <[EMAIL PROTECTED]> 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
[email protected]
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

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to