Jump to content

Ramiro

Member
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by Ramiro

  1. Nice !!! I also like the fact that it saves one line of code... I know it's not a lot but even without being a "coder" I know that if you can do at least the same or better with less code then you will have a more beautiful code.
  2. Thanks a lot RodgerWW, you gave me the answer I was looking for (and thanks to "Lri" of course). Here is my new version of the script : tell application "System Preferences" reveal anchor "output" of pane id "com.apple.preference.sound" end tell tell application "System Events" to tell process "System Preferences" tell tab group 1 of window "Son" click radio button "Sortie" if (selected of row 3 of table 1 of scroll area 1) then set selected of row 4 of table 1 of scroll area 1 to true set deviceselected to "HEADSET" return "HEADSET" else set selected of row 3 of table 1
  3. Ok... not sure how to share things... but I have a try with my Box.com account : https://www.box.com/s/yydcplhdj7vzt3dhqhly That's the "Toggle Sound Output Workflow", hope you like it. Concerning a way to mute the volume that's something to include in the "script"... it's possible and I think it already exist a workflow on the forum concerning that. If you search you will find it I think.
  4. my last post was done during the night and I was missing some sleep. This morning I found the solution to my issue. If anyone have suggestions to simplify that I would be pleased to know : and here is the correct code of the first script : tell application "System Preferences" activate set current pane to pane "com.apple.preference.sound" end tell tell application "System Events" tell application process "System Preferences" tell tab group 1 of window "Son" click radio button "Sortie" if (selected of row 3 of table 1 of scroll area 1) then set selected of row 4
  5. Hello everyone, here is my first post on this forum. I know there is some other similar posts on the forum... I've read them... but they don't do exactly what I'm looking for. Let me explain myself clearly and you will understand : I have an "old" applescript which toggle the sound output on a press of a hotkey (F7) between 2 different outputs : my display's speakers or my headset. As a result it also send a notification to Growl saying something like "Sound output changed to...". Here is the actual AppleScript : tell application "System Preferences" activate set current
×
×
  • Create New...