Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript and Volume

AppleScript and Volume
Thread Tools
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 16, 2002, 11:53 AM
 
How to do I get the volume level into a variable? For the life of my I cannot find how to do it under OS X! Since we're on the subject, how do I set it as well?

Thanks

How did it come to this? Goodbye PowerPC. | sensory output
     
Fresh-Faced Recruit
Join Date: Dec 2001
Location: NJ, USA
Status: Offline
Reply With Quote
Feb 17, 2002, 07:06 AM
 
I believe that this is not yet possible under OS X. The System Preferences is one area that is not yet scriptable. There is a "set volume" command, I tried it and it does adjust the volume, but not the main system volume, it only seems to affect the volume of any sound used in the script. Play around with this script, changing the number from 0 to 7:

tell application "Finder"
set volume 7
beep
end tell

BTW, I found this in the Standard Additions dictionary.

Steve W
Windows SysAdmin by day, OS X maniac by night...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:42 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2