For learning AppleScript in general, see:
Learning AppleScript
If you are new to AppleScript and are interested in learning more, then I'd suggest you take a look at:
- AppleScript: Beginner's Tutorial
- Script Debugger 7 -- a full IDE for developing AppleScript.
SD7 now comes with a 20-day free trial, and then will gracefully downgrade to the FREE SD7 Lite (which is still much better than Script Editor).
You can get lots of AppleScript help here in this forum, and in the Script Debugger Forum.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So what you want to do in this case is called "UI scripting", and it can be a challenge.
If you have much UI scripting to do, then I'd recommend two tools:
UI Browser will definitely make it easier to ID the window elements, and it generates the AppleScript to access a selected element. But it is not cheap.
So, as an alternative, you can use Chris @ccstone's tool with SD7.
I highly recommend Script Debugger 7.
Answer: Probably. If the window title contains "Audio Suite:", then this will be much easier.
Here's an example script I have for closing a specific window:
set scriptResults to "NOT FOUND"
try
tell application "System Events"
set winList to every window of application process "UserNotificationCenter" whose name of static text 1 is "EvernoteSpotlight quit unexpectedly."
if (winList ≠ {}) then
set oWin to item 1 of winList
tell oWin
tell button "Ignore"
perform action "AXPress"
end tell
end tell
set scriptResults to "EN SL Window Closed"
display notification scriptResults sound name "tink"
end if
end tell
Maybe that will help you get started.
Yes. If you can identify the window element reference, then you can get or set its value.