RE: two questions
RE: two questions
- Subject: RE: two questions
- From: Joe Kelly <email@hidden>
- Date: Tue, 15 Jan 2002 13:47:38 -0800
Check the dictionary of the the Scripting Addition called "Sound Scripting".
It defines a bunch of properties that you can get and set, not just sound
volume.
Here's what you can do for your app:
set sound volume to 6
tell application "MyApp"
activate
do_something()
end tell
set sound volume to 0
The dictionary defines something called sound playthrough [boolean], but it
doesn't compile.
It's safe to use repeat loops. Can't think of any reason not to, but I'm
sure there are exceptions.
jk
>
-----Original Message-----
>
From: Ricardo J. Seijo [mailto:email@hidden]
>
Sent: Tuesday, January 15, 2002 12:12 PM
>
To: email@hidden
>
Subject: two questions
>
>
>
I have been very unsucessful with the archives on this
>
- it seems
>
like many people asked but no one came up with an answer. I
>
need to write
>
a script that launches a certain app while at the same time
>
turns on the
>
main volume (which is usually muted), then mutes the volume
>
back after the
>
app quits.
>
Also, I've read that repeat commands should be avoided, that I
>
should use on-idle commands instead. Is this true, or is it
>
just something
>
that used to be good practice back when machines weren't as
>
fast as they
>
are now? Thanks in advance.
>
>
>
- R
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.