• 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
Summary: do shell sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Summary: do shell sounds


  • Subject: Summary: do shell sounds
  • From: Robert Poland <email@hidden>
  • Date: Fri, 26 Dec 2008 10:55:01 -0700

All,

Turns out that my sound "click.aiff" was not a valid aiff sound even "get  info said it was. 

A long time ago I took the system 7 sound and converted it to an aiff. Apparently it was not done correctly.

"Play Sound" would play it but nothing else would even recognize it.

I went to http://www.partnersinrhyme.com/pirsounds/WEB_DESIGN_SOUNDS_WAV/BUTTONS.shtml
and got a new sound (wav), converted it to an aiff

end code; do shell script "afplay  /Users/rpoland/Documents/clutter/Sounds/click18a.aiff"



On 25-Dec-08, at 11:16 PM, Robert Poland wrote:

The whole purpose of this string was to see if a "do shell" was available to do this.


Leopard has a command line tool "afplay" that can play sound files.  It can play AIFF, MP3 and I'm-not-sure-how-many-other formats.

do shell script "afplay /path/to/some/file.aiff"


Bob Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Thirteen Scripters Scripting (From: David Marshall <email@hidden>)
 >do shell sounds: was Thirteen Scripters Scripting (From: Robert Poland <email@hidden>)
 >Re: do shell sounds: was Thirteen Scripters Scripting (From: Bob Studer <email@hidden>)
 >Re: do shell sounds: was Thirteen Scripters Scripting (From: Robert Poland <email@hidden>)
 >Re: do shell sounds (From: Bob Studer <email@hidden>)
 >Re: do shell sounds (From: Robert Poland <email@hidden>)
 >Re: do shell sounds (From: Steve Hayman <email@hidden>)
 >Re: do shell sounds (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • Next by Date: Re: do shell sounds
  • Previous by thread: Re: do shell sounds
  • Next by thread: Re: do shell sounds
  • Index(es):
    • Date
    • Thread