Re: Audio chopped off with player filename change

2002-03-10 Thread Klaus Major

Hi Scott,

> Finally changing to 2.4 and 2.4.1, but am regretting it a bit.  Audio 
> and
> animation is an integral of my project.  Here's the problem.
>
> I make use of alot of short sound clips by changing the filename, eg.
>
> set the filename of player "sndeffect" to "sound1"
>
> But every other sound that is played the beginning of the sound clip is
> chopped off.  This only happens with changes to the filename of the 
> sound
> clip.  If the Filename of the player was never changed the sound will 
> be find
> each time the Play or Start command is used.  ONly with changes to 
> filename
> will this phenonemon occur.  Buffering didn't help.  Setting the 
> filename to
> "empty" didn't help.  This has to be a bug.
> I'm using a mac.
>
> scott

I had big success on a mac after putting a tiny "wait" command into my 
handler.

...
   set the filename of player 1 to empty
wait 5
   set the filename of player 1 to ...
...

give it t try, it worked for me.


Regards


Klaus Major
[EMAIL PROTECTED]

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Audio chopped off with player filename change

2002-03-10 Thread Scott Rossi

Recently, [EMAIL PROTECTED] wrote:

> I make use of alot of short sound clips by changing the filename, eg.
> 
> set the filename of player "sndeffect" to "sound1"
> 
> But every other sound that is played the beginning of the sound clip is
> chopped off.

Not sure if this will help but try setting the filename to empty before
setting a new filename.  There were some memory problems that occurred with
players in the past that could be alleviated with this technique.

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: [EMAIL PROTECTED]
Web: www.tactilemedia.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Audio chopped off with player filename change

2002-03-10 Thread ScottYang

Finally changing to 2.4 and 2.4.1, but am regretting it a bit.  Audio and 
animation is an integral of my project.  Here's the problem.

I make use of alot of short sound clips by changing the filename, eg.

set the filename of player "sndeffect" to "sound1"

But every other sound that is played the beginning of the sound clip is 
chopped off.  This only happens with changes to the filename of the sound 
clip.  If the Filename of the player was never changed the sound will be find 
each time the Play or Start command is used.  ONly with changes to filename 
will this phenonemon occur.  Buffering didn't help.  Setting the filename to 
"empty" didn't help.  This has to be a bug.  
I'm using a mac.

scott
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Time Date Problem on Sun SPARC SOLARIS (Sivakatirswami)

2002-03-10 Thread Sadhunathan Nadesan

| Date: Sat, 09 Mar 2002 08:37:38 -1000
| Subject: Time Date Problem on Sun SPARC SOLARIS
| From: Sivakatirswami <[EMAIL PROTECTED]>
| To: Metacard List <[EMAIL PROTECTED]>
| Reply-To: [EMAIL PROTECTED]
| 
| I am running a .mt script as a CGI on a Sun SPARC Solaris that hosts our web
| site in Honolulu.
| 
| Problem, my script depends on this function:
| 
| "put the date"
| 
| returns "March 10, 2002" and Greenwich time (London)
| 
| BUT
| 
| A shell script on the same machine using UNIX to echo the date returns the
| data in Honolulu "March 9, 2002"
| 
| So, the "daily lesson" that is built has tomorrow's date.
| 
| The sys admin "blames" metacard...but obviously, the server must have *some*
| setting that MC is accessing. thus: two questions:
| 
| 1) how to get MC to return the same, local date and time, that a shell
| script returns on the same UNIX machine.
| 2) what setting on the Solaris is MC accessing that I need to tell the sys
| admin to "fix." (they are overloaded like everyone and didn't bother to
| investigate further... so I need to take the initiative here.
| 
| Any ideas?


Swamaji:

Unfortunately a lot of stuff obtains GMT by default  (like RCS we use
at work, harummph) and that can be confusing.  But even if there were some
environment variable you could set to obtain the time zone you want,
how about a primative solution:

A> You normally run the create the daily lesson script at the same time,
so the date offset will be the same every day, so you could subtract a day,
perhaps in some way more efficient that this:

  put the date into foo
  convert foo to hours
  subtract 24*60*60 from foo
  convert foo to long date
  put foo

B> you could make a system call to the Unix date function instead of using MC, such
as

  set the shellcommand to "/bin/sh"
  put "date '+%B %d %Y' --date '1 days ago' |  sed 's/ /_/g'" | " into command_string
  put shell(command_string)
  etc..

using whatever the correct date command on (is it Solaris?
I thought it was Sun OS? ) - they could email you the man page.

Aum Aum
Sadhu
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: mc 2.4.2 request

2002-03-10 Thread Scott Raney

Alex Shaw <[EMAIL PROTECTED]> wrote:

> Wouldn't it be nice if there was a simple function which returned
> the host ip address (whichever was current or a list of valid ones)
> without having to open a socket.

What use would this be?  You'd always get a list, and wouldn't know
which one would be used until you actually opened a socket.
  Regards,
 Scott


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Alias on desktop

2002-03-10 Thread andu

jbv wrote:
> 
> Hi,
> 
> I am writing for a client an installation procedure
> to install a MC standalone + the data folder from
> a CDROM to the end user HD (on Windows).
> The client also wants an alias to be automatically
> installed on the desktop.
> How can this be done from a MC script ?

create alias x to file y

> 
> Thanks
> JB
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 

Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Alias on desktop

2002-03-10 Thread jbv

Hi,

I am writing for a client an installation procedure
to install a MC standalone + the data folder from
a CDROM to the end user HD (on Windows).
The client also wants an alias to be automatically
installed on the desktop.
How can this be done from a MC script ?

Thanks
JB


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard