• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
script to quiet itunes on ichat activity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script to quiet itunes on ichat activity


  • Subject: script to quiet itunes on ichat activity
  • From: brian mather <email@hidden>
  • Date: Fri, 5 Dec 2003 22:02:51 -0500

does anyone else find the audible alerts for ichat a little too subtle to overpower the track you're grooving to itunes? here's the beginnings of a stay open app that I'm hoping can be refined to help me overcome this.

Key questions from script below are:
is a stay open app the best approach - is there a more innocuous method available?
is the dialog box offering opportunity to quit (to avoid repetitive alerts from diving me crazy) the best approach - is there a more innocuous method available?
the if loop that checks the number of windows was the only method I could think of to determine whether chat solicitations had been received. Two problems with this approach immediately occur to me:
- the # of windows seems unpredictable. when originally writing this, after an unmeasured amount of prior ichat activity, the count of windows was 8 w/o any active chats. quit and restarted it and it dropped back to 2. Since creeps back up after chats are begun and ended - but not predictably.
- clearly this approach does not account for multiple simultaneous chat invitations - but presumably I'll be paying enough attention after solicitation 1 t to note others on my own...

Goal #1 is to is to quiet itunes momentarily so a more audible alert can be heard signaling chat solicitations have been received.
Goal #2 (significantly less important to me) is to keep itunes quieted while chats are in progress so I can hear more clearly when responses are rec'd. this script has not yet approached this. Guidance?

on idle
-- display dialog (count of windows of application "iChat") sanity check
if (count of windows of application "iChat") > 2 then
tell application "iTunes"
set savedVolume to the sound volume
set the sound volume to 20
end tell
tell application "Finder"
say "EYE EM"
end tell
tell application "iTunes"
set the sound volume to savedVolume
end tell
display dialog "Quit?" buttons {"Yes", "No"} giving up after 10
if button returned of result is "Yes" then
quit me
end if
end if
return 30
end idle

-brian
_______________________________________________
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.

  • Prev by Date: Re: Script server as faceless background application?
  • Next by Date: Re: Panther announce fax received
  • Previous by thread: Re: Script server as faceless background application?
  • Next by thread: It can not be only me...
  • Index(es):
    • Date
    • Thread