• 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: Work aroun for "say" in Portuguese language.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Work aroun for "say" in Portuguese language.


  • Subject: Re: Work aroun for "say" in Portuguese language.
  • From: Bernardo Hoehl <email@hidden>
  • Date: Mon, 2 Aug 2004 15:38:29 -0300

Hi Roger!


I did a second build.

This time using Project Builder instead of XCode.

This time I got the executable, and it works.

It seems it is a problem between the original project and Xcode.

Thanks to you all at the list.

This works!


Bernardo


=====================
On 02 de ago de 2004, at 14:56, Roger Howard wrote:

On Aug 2, 2004, at 10:14 AM, Bernardo Hoehl wrote:

Hi Roger!

Thanks everyone for posting!

I built the app. using Xcode.

I have a folder "PlayBufferedSoundFile.pbxindex", and lots of files inside it. None look executable by GUI. It seems they have to be called from a command line.

Is the app ready for use now?

Could you write me here the command to call a "mp3" file via "do shell script"?

Open "PlayBufferedSoundFile.pbproj" (in XCode/ProjectBuilder)... do a "Build".
In the folder where you found "PlayBufferedSoundFile.pbproj", there should now be a build folder. Inside that should be a simple executable named "PlayBufferedSoundFile" - this is a command-line app, so double-clicking it won't help.

The correct way to use this is easy from AppleScript:

do shell script "/path/to/PlayBufferedSoundFile /path/to/your/soundfile.mp3"

There are no command line options - you just invoke the app with a path to the sound file (any format supported by Quicktime should work).

As for how to use this from an applet bundle - include this in the bundle... in your applet you can get the path to itself ("path to me") and then tack on the relative path of the path. Something like this (assuming "theSoundFile" is an alias or path to the sound file you want to play

set PlayBufferedSoundFilePath to quoted form of POSIX path of ((path to me as string) & "Contents:Resources:PlayBufferedSoundFile")
do shell script PlayBufferedSoundFilePath & space & quoted form of POSIX path of theSoundFile

Something like that should do it,

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


  • Follow-Ups:
    • Re: Work aroun for "say" in Portuguese language.
      • From: Roger Howard <email@hidden>
References: 
 >Re: Work aroun for "say" in Portuguese language. (From: Bernardo Hoehl / Gessos Rutenium <email@hidden>)
 >Re: Work aroun for "say" in Portuguese language. (From: Roger Howard <email@hidden>)
 >Re: Work aroun for "say" in Portuguese language. (From: Bernardo Hoehl <email@hidden>)
 >Re: Work aroun for "say" in Portuguese language. (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: Work aroun for "say" in Portuguese language.
  • Next by Date: Re: Work aroun for "say" in Portuguese language.
  • Previous by thread: Re: Work aroun for "say" in Portuguese language.
  • Next by thread: Re: Work aroun for "say" in Portuguese language.
  • Index(es):
    • Date
    • Thread