#ReturnCode10
15 messages in this thread
Denny Atkin's book "Best Amiga Tips and Secrets" offers much insight into
parts of Workbench (version 2.1) that I never really understood. It also
creates many questions.
In setting up a file (icon) to run from just 'double-clicking' the icon,
an "Execute a File" requestor comes up. Clicking 'OK' brings up the
output window which then states, " X file is not executeable" and "X
failed return code 10". According to the "information" of the icon, it is
executable, erasable, writable and deletable. Also the comment line is
set up for it to look at "DH0:c/play", since it is a sound file which I
wish to make executable from just 'clicking the icon". What am I leaving
out?
Patrick White
"The Amiga non AB rated"
Is it possible that you have given the path to the directory, but not to
the program of the same name?
—Betty
>Is it possible that you have given the path to the directory, but not to
the program of the same name?
I don't quite understand your question.
According to the "information" of the icon, it is executable, erasable,
writable and deletable. Also the comment line within the 'information' of
the icon(sound file) is set up for it to look at "DH0:c/play", since it is
a sound file which I wish to make executable from just 'clicking the
icon". What am I leaving out?
The Amiga- No Generics available
Patrick White
"The Amiga non AB rated"
A comment line is just that, a comment. It isn't used as a string argument
like in the Shell. Try including the path and the tool that will load the
data file and display or play it in the string requester.
Here is an example of using the Execute Command… menu item in the
Workbench menu:
Enter command and its arguments:
|————————————-|
| Dh0:c/play dh0:sounds/soundfile |
|————————————-|
Insert the command file in the Default Tool string.
Chris
I meant to say 'Default Tool' instead of comment line (late nighter)..
Why won't it work (the default tool) with "DH0:c/play"? Other default
tools in the icons/information menu worked fine when I showed the icon
where to look for the command, ie DH0:c/STV, DH0:c/ppmore.
Patrick White
"The Amiga non AB rated"
If you have a valid path and program name in your Default Tool, and it
won't work, is it possible that the program being invoked has a problem or
is no longer executable itself, or, that the program requires more
parameters than your .info file has in it (for the Project file that you
are trying to "listen" to)?
Is it also possible that the program you are trying to invoke somehow got
replaced by a .info file (thereby making it non-executable)? I used to
make this mistake NUMEROUS times when manually copying files and creating
icons for programs that didn't come with one (SIGH). I now use a script to
take care of things.
Real World:southern Illinois,USA Internet:ca0008 at siucvmb.siu.edu
The icon in question, STNGfanfare, is a tool icon, not a project icon.
(The sound file works because I ran it through the prefs/sound program
which comes with 2.1.) What I would like to do is make it possible to
double click the icon and presto, we hear the sound file.
I may be totally off base, but here goes..(baseball season has started!)
Since it's a tool icon, I pull up the IconEditor in 2.1 and changed the
icon to a Project icon. Then under Default tool I placed
"DH0:prefs/sound" , then double click the icon with no luck. "File not
IFF" came up. How far am I off base? <>
Patrick White
"The Amiga non AB rated"
Patrick,
Ah – I suspect that what STNGfanfare is, is a "self running program" (or
is that, "self loading program"?). At any rate, it is a combination
program and data file (hence, the "self running" part). That is to say, it
is a sound sample with its own player, wrapped into a single Tool object.
Consequently, you can't "play" the file, since it isn't just a sound
sample. That appears to borne out by the "file not IFF" response you got.
Real World:southern Illinois,USA Internet:ca0008 at siucvmb.siu.edu
Jim,
Using psound and changing the tool to a project and by setting the default
tool, STNGfanfare now works with just a click. Thanks for your help.
Patrick White
"The Amiga non AB rated"
Patrick,
Glad I could be of assistance. The STNGfanfare that you have – is that
the same thing as the Splunge Productions', "STNG In-Stereo!"?
Real World:southern Illinois,USA Internet:ca0008 at siucvmb.siu.edu
<<… The STNGfanfare that you have – is that the same thing as the
Splunge Productions', "STNG In-Stereo!"?
Jim,
STNGfanfare is a digitized sound file of the opening music to Star Trek
the Next Generation. I alternate between the fanfare and the "program
complete, enter when ready" voice of the Holodeck computer in the prefs
sound file, which is played when an error occurs. Sounds great!
Patrick White
"The Amiga non AB rated"
Patrick,
Thanks for the info. It sounds like STNGfanfare is the same thing as
Splunge's "In-Stereo!" version (albeit the sample was taken at the END of
STNG).
Real World:southern Illinois,USA Internet:ca0008 at siucvmb.siu.edu
I can think of several explanations. If dh0:c/play was damaged (I think
thats mentioned in another reply) it wouldn't work. Is play callable from
the workbench? There are some older programs that are only useable from
the CLI.
Also, does the program do what you think it does? I have seen animplayers
named 'play'… Can you run the program against your file from the shell?
Ummmm, also be sure that play is actually there, in the dh0:c directory.
That can be REAL confusing if you actually have it in another directory,
'specially one in your path (say dh0:Utilities) since it WOULD run from
the cli, but WB is more picky.
Patrick,
Please verify that the command is indeed in the directory you specified,
also try to use it and the sound file via a shell.
example:
Shell 1:> run dh0:c/play dh0:sounds/boing.snd
See if that works. if it does, than perhaps the executable doesn't work
within an icon and is only a CLI (Shell) executable. There are some
programs or utilities that won't work with an icon.
Chris
1. Make sure you are using a PROJECT icon.
2. Make sure that your 'PLAY' command actually works, ie:
from the CLI enter:
C:PLAY <pathname>:<soundfile>