Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

UI elements question

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  load script  
Author Message
Addle Jones

External


Since: May 06, 2006
Posts: 4



(Msg. 1) Posted: Tue Jul 04, 2006 12:06 am
Post subject: UI elements question
Archived from groups: alt>comp>lang>applescript (more info?)

I'm trying to write a simple script that sets the default audio
output device to "Built-in Output." This is done by clicking
something in the Audio MIDI Setup application, so after some fiddling
to figure out what ui element was what, I tried the following script:


tell application "Audio MIDI Setup"
activate
end tell

tell application "System Events"
tell process "Audio MIDI Setup"
tell window 1
tell tab group 1
tell pop up button 6
set value to "Built-in Output"
end tell
end tell
end tell
end tell
end tell


This script activates the Audio MIDI Setup application but
unfortunately, it has no effect on the selected value of
the default output. I guess the general question is how do
you set the value in a pop up button.

Any ideas?

 >> Stay informed about: UI elements question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
One more question... - First, thanks to everyone who's been of help here. My project is nearly finished , much thanks to the group. Here's the last brain crusher. I have a list of email addresses, and I'm adding them to the address book. Now, suppose my script quits ..

newbie question, help much appreciated - Hi all, I'm trying to find a piece of software that is able to record scripting actions in Quark (mainly). I'm a graphic designer/desk top publisher and know zip about programming. I have written some macros for a Windows program called Corel Ventura,..

Entourage Question - I modified a script that came with the program so I don't have to manually select all and permanently delete the trash. How do I add the step send and receive all to this script. That way they would be taken off the server as well. Thanks in advance,..

Set Volume 10.3 question - I used to run an applescript in the morning to wake me up nicely, I loved the fact I could set the system volume to a medium high level, so it was always loud enough to wake me up. In 10.3 it seems the volume won't set correctly for me with ("set ...

boolean question - set foo to "bar" foo = "noMatch" or "bar" -- looks like this only tests for first var ( false ) foo = ("noMatch" or "bar") -- error ( can't make "noMatch" into a boolean ) foo = "noMatch&qu...
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]