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

Re: do shell sounds


  • Subject: Re: do shell sounds
  • From: David Marshall <email@hidden>
  • Date: Fri, 26 Dec 2008 09:19:55 -0500

On Fri, 26 Dec 2008 06:34:35 -0700, Robert Poland wrote:

But I can't get it to work;

do shell script "afplay /iMac HD/Users/rpoland/Documents/clutter/
Sounds/click.aiff"

Goes to a help window with no sound.

If you're booted from "iMac HD," then the correct path would be

Volumes/iMac HD/Users/rpoland/Documents/clutter/Sounds/click.aiff

or, more simply,

/Users/rpoland/Documents/clutter/Sounds/click.aiff

(Additionally, the space in "iMac HD" needs to be escaped in the longer version, so the full command would be either

do shell script "afplay Volumes/iMac\ HD/Users/rpoland/Documents/ clutter/Sounds/click.aiff"

or

do shell script "afplay 'Volumes/iMac HD/Users/rpoland/Documents/ clutter/Sounds/click.aiff'" )

- - - - -

Dave
_______________________________________________
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
  • Follow-Ups:
    • Re: do shell sounds
      • From: Robert Poland <email@hidden>
  • Prev by Date: Re: on the lack of documentation (was: Re: on neophytes vs perfectionists)
  • Next by Date: Re: do shell sounds
  • Previous by thread: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • Next by thread: Re: do shell sounds
  • Index(es):
    • Date
    • Thread