Re:Distant Finding

1999-01-02 Thread Ruediger zu Dohna

At 21:18 Uhr -0500 04.11.1999, Raymond E. Griffith wrote:
>  > From: Nelson Zink <[EMAIL PROTECTED]>
>  > I want to know whether a particular number resides in a distant cd fld
>Use the "offset" function. Eg: offset("007",fld "Agents" of cd "Espionage")
>
>This will return 0 if not found.

There are better options:

   if "007" is in fld "Agents" of cd "Espionage" then ...

which is better to read than the offset function... and you dont seem 
to be interested in the exact location of the pattern.

Even would be

   if "007" is among the lines of fld "Agents" ...

Because those other options would also match agent "0007" or "0074".

If you want the exact line number, try

   get lineOffset("007",fld "Agents" of cd "Espionage")

But remember to set the wholeMatches to true, or you'll have the same 
problems as with the offset function.

Regards
   RĂ¼diger

| Ruediger zu Dohna   GINIT GmbH   0721-96681-63[EMAIL PROTECTED] |
| PGP-Fingerprint: F1 BF 9D 95 57 26 48 42 FE F8 E8 02 41 1A EE 3E |




Re: Sending e-mails

1999-01-02 Thread Andu

>On Thursday, Nov 4 1999, Mac Consult SRL wrote:
>
>> I'll make my question very easy: I want to send an e-mail from within
>> Metacard, how can I do it??
>
>You can either launch the users email package (using scripts that have been
>supplied on this list several times now so should be in the archives), or
>wait for the 2.3 release which will have email support built in.  The only
>other option you have is to format the data so it can be sent using the
>"post" command to CGI that emails it (which can be done inside MetaCard
>without launching an email package).  If your need is immediate, contact me
>off list for more information.
>
>The bottom line: right now, you cannot simply "send email" from inside
>MetaCard.

Bottom line actually is if you are willing to learn a little and script a
little you can send E-mail from inside MC easily.

>
>Regards,
>
>Kevin

Regards, Andu




Re: Sending e-mails

1999-01-02 Thread Andu

>I'll make my question very easy: I want to send an e-mail from within
>Metacard, how can I do it??
>Saludos,
>
>Javier Miranda V.
>MacConsult

MC 2.3 beta 1 has support for sockets (read/write/listen) so you can script
your own E-mail client given that you take a look at the smtp rfc as to how
to send commands and interpret the answers to and from the server.

Regards, Andu




Re:Distant Finding

1999-01-02 Thread Raymond E. Griffith

> From: Nelson Zink <[EMAIL PROTECTED]>
> Subject: Distant Finding

> All,
>
> I want to know whether a particular number resides in a distant cd fld
> and am using the Find function to make the determination. However, I
> don't want to be transported to that card. Any clever combination of Find
> and Result?
>
> What I really want to say is:
> if the result of find "007" in cd fld Agents of cd Espionage is "not
> found" then MailThePackage
>
> Nelson Zink
>
Use the "offset" function. Eg: offset("007",fld "Agents" of cd "Espionage")

This will return 0 if not found.

Good luck,

Raymond
>
> --- END metacard.v003.n128 ---



Re: Exporting Images as JPEG

1999-01-02 Thread Tuviah M Snyder

> Hi all,
> Another basic question I'm afraid.  
Not at all a few weeks ago someone asked me how to export GIF images in
Mac.

>How would I go about exporting 
> Image  objects as JPEG or GIF, or exporting the card image as a JPEG or

> GIF.
It's not built into MetaCard, but I've found a way to do it on the Mac.
With Clip2GIF and the external collection you can export an image or card
out as a pict file(or to the clipboard), and have applescript tell the
open Clip2GIF app to convert it to any supported file format. I would be
happy to e-mail the stack off list to anyone who wants it.

regards,
Tuviah Snyder
Diskotek
Custom Application Development & SuperCard/HyperCard Conversion at a low
price



Distant Finding

1999-01-02 Thread Nelson Zink

All,

I want to know whether a particular number resides in a distant cd fld 
and am using the Find function to make the determination. However, I 
don't want to be transported to that card. Any clever combination of Find 
and Result?
 
What I really want to say is: 
if the result of find "007" in cd fld Agents of cd Espionage is "not 
found" then MailThePackage 

Nelson Zink



Exporting Images as JPEG

1999-01-02 Thread Adrian Sutton

Hi all,
Another basic question I'm afraid.  How would I go about exporting Image
objects as JPEG or GIF, or exporting the card image as a JPEG or GIF.

Thanks in advance,

Adrian Sutton

**
Email: [EMAIL PROTECTED]Ph: 3714 4649
I have been complimented many times and they always embarrass me;
I always feel that they have not said enough.
  -- Mark Twain.
**




custom cursor

1999-01-02 Thread Michael Walas

I have created a custom cursor image but when I set the cursor to id
such and such it displays completely black.  I figure this has something
to do with a mask and I've seached the help section to no avail.
(Crossworlds, please hurry with the new documentation stacks!) I've
changed the cursor ID to < 100, put the cursor in the cursor substack of
tools, and even made my own substack with ithe mported cursor.  I know
this has to be very simple yet it's taking way to much time to do such a
simple job.  Anyone want to help a frustrated user?



Re: More MCISendString troubles

1999-01-02 Thread Kevin Miller

Andrew Griffin wrote:

> Okay, I have tried everything in order to check and see if my playing
> MIDI, using the MCISendString command, is done playing.
>
> First, I have used this, but it doesn't work:
>
> on startPlaying
> --put your commands to alias the file here and then to play it
> send "checkFinished" to me in 5 seconds
> end startPlaying
>
> on checkFinished
> if mciSendString("status myAudio") is not "stopped" then
> send "checkFinished" to me in 5 seconds
> exit checkFinished
> end if
> --its finished, insert script to play it again here
> send "checkFinished" to me in 5 seconds
> end checkFinished
>
> What happens is the "status myAudio" part returns "MMSYSTEM273 The
> specified command is missing a paramter.  Please enter one."  Now, when
> I ran this script I used the "myAudio" alias as well as the alias
> "bgmusic", but neither worked (I aliased my music using both names, not
> at the same time of course!).  I put a "return the result" type script
> below the if handler to get the above message.  I looked through the
> metacard mci stack and even when you click on it's status command it
> gives you the same error.  I have tried a number of other things, but
> still cannot get it to work.  What is the parameter that's missing?  All
> I need to do is check to see if the MIDI is done playing so it can
> either loop itself or play another.  Has anybody got the above script to
> work?  If so how?
>
> Thanks for any help, it's driving me nuts and I really need it to work!

That script is based on a portion we've used in a commercial product without
any problems.  My guess is that something is going wrong at the stage when
you start playing the MIDI.  Unfortunately, I don't have the complete script
to hand right now.

If you can't solve it, you could switch to using the 2.3B1 release.  That
has a "player" object that plays back Quicktime movies (you can easily
convert your MIDI to QT).

Regards,

Kevin

> --Andrew

Kevin Miller <[EMAIL PROTECTED]> 
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.



Re: Sending e-mails

1999-01-02 Thread Kevin Miller

On Thursday, Nov 4 1999, Mac Consult SRL wrote:

> I'll make my question very easy: I want to send an e-mail from within
> Metacard, how can I do it??

You can either launch the users email package (using scripts that have been
supplied on this list several times now so should be in the archives), or
wait for the 2.3 release which will have email support built in.  The only
other option you have is to format the data so it can be sent using the
"post" command to CGI that emails it (which can be done inside MetaCard
without launching an email package).  If your need is immediate, contact me
off list for more information.

The bottom line: right now, you cannot simply "send email" from inside
MetaCard.

Regards,

Kevin

> Saludos,
>
> Javier Miranda V.
> MacConsult

Kevin Miller <[EMAIL PROTECTED]> 
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.



Re: Sending e-mails

1999-01-02 Thread David Bovill

On a Mac?

> From: "Mac Consult SRL" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 04 Nov 1999 10:05:14 -0800
> To: [EMAIL PROTECTED]
> Subject: Sending e-mails
> 
> I'll make my question very easy: I want to send an e-mail from within
> Metacard, how can I do it??
> Saludos,
> 
> Javier Miranda V.
> MacConsult
> 



Sending e-mails

1999-01-02 Thread Mac Consult SRL

I'll make my question very easy: I want to send an e-mail from within
Metacard, how can I do it??
Saludos,

Javier Miranda V.
MacConsult



Re: mc2.3B1 movies

1999-01-02 Thread Hugh Senior

2.3QT Observations:
 
>> [1] Is there a memory overhead in not being able to purge a movie after
>> use, or is this a non-question?

>It's a real question, but may be a non-problem ;-)  The player object
>purges the prepared movie if you close it (e.g., when you go to
>another card) or set the fileName property to empty.  Under what other
>circumstances should it do this?  Maybe when you hide it?  But that
>might make hiding and showing slower...

I guess it depends on the impact _not_ purging has on program performance.
An "alwaysPurge" property, defaulting to true?

Note: AlwaysBuffer must be set to true for a video movie player to
show/hide correctly. This is implicit in the readme, but not stated
explicitly.

>> [2] Request:
>> If the callback message included the "time" parameter it would eliminate
>> the potential proliferation of callback message handlers required.

>Good idea.  Maybe even better would be to accept a parameter with
>command?  So the callbacks property could be something like:
>1234, mycallback cb1
>2345, mycallback cb2
>
>The parameters could only be fixed strings, though.  Would this be
>better than returning the time, or just confusing?

Much better. In my experience, things are confusing only when not clear. If
the rule is "fixed string up to 255 chars" then that's what we abide by.

Perhaps the time should be returned by default (rather like "mouseUp" just
in case you need to know 1/2/3) if no other param is passed:

1234, mycallback cb1  -- would return the value of cb1
2345, mycallback  -- would return "2345"

/H
Hugh Senior

The Flexible Learning Company
Consultant Programming & Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: [EMAIL PROTECTED]
Web: www.flexibleLearning.com



Re: SV: What No 'Copy File'?

1999-01-02 Thread Tuviah M Snyder



On Wed, 3 Nov 99 23:34:35 -0800 Richard Gaskin
<[EMAIL PROTECTED]> writes:
> >This should be no problem on the Mac. Even running applications can 
> >be even moved without problems on the Mac.
> 
> And the resource fork?
You can copy the resource fork with MetaCard. If you need to copy the
icons, and filetypes you can always use applescript.

regards,
Tuviah Snyder
Diskotek
Custom Application Development & SuperCard/HyperCard Conversion at a low
price