Re: play sound
Re: play sound
- Subject: Re: play sound
- From: Emmanuel <email@hidden>
- Date: Fri, 30 Jul 2004 22:55:03 +0200
At 2:03 PM -0600 30/07/04, Robert Poland wrote:
>
OS 10.3.4, Smile 2.6.2.
Ahhh, users of obsolete versions ...
>
In an effort to get around using iTunes to play a simple sound I tried this simple script. When run from Smile I get a message "Can't get console of script window id 7.".
Don't work in a script window, Robert. Use the text windows, they are better.
About that, please consider spending a few minutes reading:
<smile://&method=helphtml&file=as_shell.html>
or
<
http://www.satimage-software/en/as_shell.html>
>
set mantelSound to (path to documents folder as string) & "clutter:Sounds:mantel" as alias
>
play sound mantelSound
I can two reasons why this script may not work as you expect.
1. "path to documents folder" is not something that "path to" allows. On Jaguar, I have to write:
path to "docs". I've found that in User scripts > More Smile commands > Scripting > All path to.
2. I may be wrong, but I can't see a "play sound" command in any dictionary. You can play a sound in Smile: open the file as a QuickTime movie, then launch it. That's what "playsound" does, an addition available at:
<
http://www.satimage.fr/software/en/downloads_smile_extras.html>
So, I would try (in a text window):
----------------
set mantelSound to (path to "docs" as string) & "clutter:Sounds:mantel" as alias
set w to make new movie window with properties {path name:f, visible:false}
play w
delete w
----------------
Emmanuel
_______________________________________________
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.
References: | |
| >play sound (From: Robert Poland <email@hidden>) |