• 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: Say to file is broken
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Say to file is broken


  • Subject: Re: Say to file is broken
  • From: Philip Aker <email@hidden>
  • Date: Tue, 12 Nov 2002 18:07:28 -0800

On Tuesday, Nov 12, 2002, at 10:26 US/Pacific, Doug Everly wrote:

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.

Right. I was using Script Editor and changed to the desktop folder path so didn't need any POSIX conversion.

Cheers,

Philip Aker
http://www.aker.ca


- 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.



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.

References: 
 >Re: Say to file is broken (From: Doug Everly <email@hidden>)

  • Prev by Date: A Tragedy of Errors was Re: handler failure
  • Next by Date: Re: "of machine" use?
  • Previous by thread: Re: Say to file is broken
  • Next by thread: Considering/Ignoring case
  • Index(es):
    • Date
    • Thread