• 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: Robert Poland <email@hidden>
  • Date: Thu, 25 Dec 2008 21:16:43 -0700


On Dec 25, 2008, at 3:37 PM, Bob Studer wrote:

On Dec 25, 2008, at 2:19 PM, Robert Poland wrote:

Your suggestion won't compile.

This compiles on my machine (10.5.6, by the way) for an MP3 file on my machine because I have version 1.5.1 of the Play Sound application from Microcosm Software installed and I (maybe incorrectly) assumed that you did too.

I am using the latest version 1.6.7.

Tell application "Play Sound" to open file "Donna:Users:bstuder:Library:Sounds:Bloated sack of protoplasm.mp3"


Removing the word "file" compiles but gives error "-1700".

Same on mine, because "file" is required.

Adding ".aiff" makes no difference to either.

It wouldn't if the file wasn't called "click.aiff".

The file (click.aiff) is an .aiff.

Didn't see "do shell", was it left out on purpose???

It's a normal "tell" statement -- do shell script has nothing to do with this.

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


OS 10.5.6.


On Dec 25, 2008, at 12:31 PM, Bob Studer wrote:

On Dec 25, 2008, at 9:35 AM, Robert Poland wrote:

Now if someone could come up with  "do shell" replacement for;

tell application "Play Sound" to play "iMac HD:Users:rpoland:Documents:clutter:Sounds:click"

So what is "click"? Is it an MP3 or AIFF file? If so, you can tell Play Sound to open it:

tell application "Play Sound" to open file "iMac HD:Users:rpoland:Documents:clutter:Sounds:click"



--Bob


Bob Poland - Fort Collins, CO





--Bob

Written while listening to:
You Don't Know Me (Live)
Tubeway Army
Tubeway Army


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

  • Follow-Ups:
    • Re: do shell sounds
      • From: Bob Studer <email@hidden>
    • Re: do shell sounds
      • From: Steve Hayman <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>)

  • Prev by Date: Re: do shell sounds
  • 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