Re: Say to file is broken
Re: Say to file is broken
- Subject: Re: Say to file is broken
- From: Doug Everly <email@hidden>
- Date: Tue, 12 Nov 2002 13:26:30 -0500
This tip was very helpful, but led to another problem. aiff files were
being written, but only to my root directory. Since I am using
AppleScript Studio to get my path, it returns a POSIX path (with
slashes). So I needed to convert it as below with "POSIX path".
say the_verbage using the_voice saving to POSIX path of the_path
This worked.
- Doug
On Tuesday, November 12, 2002, at 02:58 AM, Philip Aker wrote:
>
On Monday, Nov 11, 2002, at 21:14 US/Pacific, Doug Everly wrote:
>
>
> This example from Apple's web page does not save the voice sound into
>
> a
>
> file in 10.2.2, but does not indicate any errors.
>
> From http://developer.apple.com/ue/speech/applescript.html:
>
>
>
> on run
>
> set theText to "This is something very cool very cool very cool this
>
> is something very cool that every mac can do!"
>
> say theText using "Cellos" saving to "my_cool.aiff"
>
> end run
>
>
>
> Anybody have any ideas on why this isnt working?
>
>
Because you didn't "try" hard enough?
>
>
try
>
set dpath to (path to desktop as string) & "cool.aiff"
>
set phrase to "Care for a spot of tea? Care for a spot of tea?"
>
say phrase using "Daljit" saving to dpath
>
on error errs number errn
>
display dialog errs
>
end try
>
>
>
Philip Aker
>
http://www.aker.ca
_______________________________________________
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.