Re: Work aroun for "say" in Portuguese language.
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.