Re: Ok, what now?

2000-09-22 Thread Phil Davis

I'm just "seconding" what Andu said. Your range of uses for
Metacard will likely depend on things like:
- what you do for a living
- what you do for fun
- how computing and the internet fit into the above

I found that with MC as my "hammer" of choice, my world abounds
with nails just waiting - *begging* - to be driven!

Food for thought.

Take a look at some of the things available for download at
http://www.xworlds.com - you may be surprised.

Phil Davis



andu wrote:
 
 Hi all
 
 I've just downloaded the MetaCard starter kit, and had a bit of a look at
 the demo, and quite frankly it impressed the hell out of me.  What I'd like
 now is a few ideas on how I might put this thing to good use.  If anyone has
 any great ideas or tips on how make the most of MetaCard, please respond (on
 or off list as you prefer).
 
 The simple answer is that you can write almost any kind of application and/or 
utilities with it for at least 3 platforms.  Some experience with Hypercard or 
Supercard is definitely helpful otherwise just take it step by step and ask all the 
stupid questions like most users do at some point or another ;-). Also there is an 
archive with previous posts at http://www.mail-archive.com/metacard which is most 
informative.
 The ideas should come from you but if you need help implementing them ask the list.
 
 Cheers
 Tim
 
 Regards, Andu
 ___
 [EMAIL PROTECTED]
 
 Archives: http://www.mail-archive.com/metacard%40lists.best.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.

-- 
Phil Davis
---
[EMAIL PROTECTED]
days: (503) 417-7930
eves: (503) 557-5656
---
Facilitator
Essentials of eBusiness Computing
Information Technology Institute
http://www.iti.com

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Ok, what now?

2000-09-22 Thread Richard Gaskin

 I've just downloaded the MetaCard starter kit, and had a bit of a look at
 the demo, and quite frankly it impressed the hell out of me.  What I'd like
 now is a few ideas on how I might put this thing to good use.  If anyone has
 any great ideas or tips on how make the most of MetaCard, please respond (on
 or off list as you prefer).

As the others have pointed out, the xworlds.com collection is a great
starting point.  All the best MetaCarders out there have adde to it,
including Andu, Tuviah, of course the Crossworlds gang, and many others.

But like Phil Davis suggested, perhaps the most important thing is to just
play with it.  Go wild -- I've found little I can't do with MetaCard.  I
suspect you'll find the same as well.  And as with any tool, there will be
times when you want to kick it in the shins -- but if your experience is
like most folks', you'll discover that more often than not it's more a
question of understanding the tool than any inherent limitation in the tool
itself.

The best thing is that you've already discovered the most valuable MetaCard
resource:  this list.

Happy scripting!

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: carbonized MetaCard

2000-09-22 Thread Richard Gaskin

But you should keep in mind that the final release of Mac OS X is
many, many months away and while it might make a good development
platform before then, there probably won't be a large enough installed
base to bother with making distributions for that platform until
sometime next year.

Gee, Scott, you don't think an OS which requires a proprietary language to
write native apps for and only runs on the most expensive machines in the
industry isn't going to take over the world?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: mcEncrypt

2000-09-22 Thread David Bovill

 From: Peter Reid [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 22 Sep 2000 09:26:18 +0100
 To: [EMAIL PROTECTED]
 Subject: mcEncrypt
 
 Can I check what characters can be in an encrypted string as
 generated by mcEncrypt().

I'd really like some help hacking this -:)

 This is the function used to produce
 passwords by the Ask dialog but it is not documented in the help.
 I'd like to be sure that a generated password can't include the tab
 character as I want to store user passwords in tab-delimited records.
 Also, I'm generating dummy user data and want to generate passwords
 based on combinations of first names, surnames, initials etc. and
 don't want to generate passwords containing my field/item separator!
 
 Also, I'm assuming that there isn't an mcDecrypt (common practice
 with password systems is that they are one-way process only).  If
 there is a decryption function, what is it called and what are its
 parameters?
 

And would it be possible to post this on the web site?



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Call by reference parameters are great...

2000-09-22 Thread David Bovill

but -:)

I'd use them a lot more if I could call functions without having to include
the parameter:


I have for instance a function "extractXmlData":


function extractXmlData xmlTagName, someXml
  ...

  return taggedText
end extractXmlData


Now mostly I just want the data so I use:

 put extractXmlData("kevins_CreditCardNumber", hisBankAccount) into myWallet

Or something similar.



But occasionally I want to then remove the evidence (or otherwise manipulate
the source text). By simply tagging call by reference parameters to the end
of the function I can easily get hold of these:

function extractXmlData xmlTagName, someXml, @startTag, @endTag
  ...

  return taggedText
end extractXmlData


So now I can:

 put extractXmlData("kevins_CreditCardNumber", hisBankAccount, startTag,
endTag) into myWallet

 delete char startTag to endTag of hisBankAccount

This is all cool, especially for complex parsing scripts that actually
calculate a lot of useful information that is not returned in the result.

The problem is twofold:

1)  You cannot ommit the call-by-reference parameters in the function
call. Therefore:

  get extractXmlData("kevins_CreditCardNumber", hisBankAccount)

Won't work (you get a script execution error - you must:

  get extractXmlData("kevins_CreditCardNumber", hisBankAccount, dummy1, yuk)

Even if you don't want the stuff. This prevents me from using them in
frequently used handlers.

2) If I am right you can't "do" them, and as a consequence I think you
can't debug them???


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: mcEncrypt

2000-09-22 Thread Peter Reid

Also, I'm assuming that there isn't an mcDecrypt (common practice 
with password systems is that they are one-way process only).  If 
there is a decryption function, what is it called and what are its 
parameters?

Oops, I asked this question some time ago and was told no decryption 
then - sorry to repeat myself!

Still interested in the characters generated by mcEncrypt() though!

Cheers

Peter
-- 

Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




MC Statistics Builder

2000-09-22 Thread Mark Talluto



Hi fellow MC users.  I recently needed to know how many lines of code I had in a 
completed project and print out some of those to paper.  So I made a program that:

1.  Counts all of your objects on your mainstack and substacks and display each 
accordingly
2.  Compiles a complete copy of all of your code and labels each section.
3.  Tells other general information about your stack.

If anyone would like a copy and maybe make it better, that would be cool.  I find it 
useful at times and thought others might too.  If so, maybe x-worlds would host it as 
a tool for download.

-Mark Talluto

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: MC Statistics Builder

2000-09-22 Thread andu






Hi fellow MC users.  I recently needed to know how many lines of code I had in a 
completed project and print out some of those to paper.  So I made a program that:

1.  Counts all of your objects on your mainstack and substacks and display each 
accordingly
2.  Compiles a complete copy of all of your code and labels each section.
3.  Tells other general information about your stack.

If anyone would like a copy and maybe make it better, that would be cool.  I find it 
useful at times and thought others might too.  If so, maybe x-worlds would host it as 
a tool for download.

Could you please send me a copy? Thanks.

-Mark Talluto


Regards, Andu 
___
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: MC Statistics Builder

2000-09-22 Thread Kevin Miller

On 22/9/00 4:24 pm, Mark Talluto [EMAIL PROTECTED] wrote:

 Hi fellow MC users.  I recently needed to know how many lines of code I had in
 a completed project and print out some of those to paper.  So I made a program
 that:
 
 1.  Counts all of your objects on your mainstack and substacks and display
 each accordingly
 2.  Compiles a complete copy of all of your code and labels each section.
 3.  Tells other general information about your stack.
 
 If anyone would like a copy and maybe make it better, that would be cool.  I
 find it useful at times and thought others might too.  If so, maybe x-worlds
 would host it as a tool for download.

Please send me a copy off list and we'll be happy to host it!

Regards,

Kevin

 -Mark Talluto

Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Pagination experiences

2000-09-22 Thread Geoff Canyon

on 9/21/00 6:26 PM, Kevin Miller at [EMAIL PROTECTED] wrote:

 ...By slow I mean more than a second on a fast computer.
 
 That sounds quite fast: how fast do you need it to be?

Actually, now that you mention it, it is. :-) MetaCard is amazing. But
still, one second on a fast machine could be as much as ten or fifteen
seconds on a slow machine that I would still want to support.

and on 9/21/00 6:35 PM, Scott Raney at [EMAIL PROTECTED] wrote:

 Just one: Use the pageHeights property of the field, which does all of
 this work automatically for you ;-)

You know, nobody likes a wiseguy, Scott :-)

After considering the issue for a moment, I think the pageHeights property
_may_ do the trick, but I'll still have to do a little work (this assumes
constant line heights, which is safe for my application):

1. Put the text from the start to the text that must be included into the
field.
2. Get the page heights.
3. Add up all but the last.
4. Count the pageHeights to see what page I'm on.
5. Figure out the chunk description for the beginning of the last page.
6. Add text, and figure out how much will fit on the last page.
7. Place that text in the field, and put in the page number from step 4.

By the way, the pageHeights doesn't support widow and orphan control, does
it? I'll have to adjust to that.

gc



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: mcEncrypt

2000-09-22 Thread Scott Raney

On Fri, 22 Sep 2000, Peter Reid wrote:

 Can I check what characters can be in an encrypted string as 
 generated by mcEncrypt().  This is the function used to produce 
 passwords by the Ask dialog but it is not documented in the help. 
 I'd like to be sure that a generated password can't include the tab 
 character as I want to store user passwords in tab-delimited records. 
 Also, I'm generating dummy user data and want to generate passwords 
 based on combinations of first names, surnames, initials etc. and 
 don't want to generate passwords containing my field/item separator!

It can contain tabs, so you'd better use the base64Encode() function to
encode it before storing it away.

 Also, I'm assuming that there isn't an mcDecrypt (common practice 
 with password systems is that they are one-way process only).  If 
 there is a decryption function, what is it called and what are its 
 parameters?

There isn't one.
  Scott

 Cheers
 
 Peter
 -- 


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


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: MC Statistics Builder

2000-09-22 Thread David Bovill

Me too?

 From: Kevin Miller [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 22 Sep 2000 17:09:50 +0100
 To: [EMAIL PROTECTED]
 Subject: Re: MC Statistics Builder
 
 On 22/9/00 4:24 pm, Mark Talluto [EMAIL PROTECTED] wrote:
 
 Hi fellow MC users.  I recently needed to know how many lines of code I had
 in
 a completed project and print out some of those to paper.  So I made a
 program
 that:
 
 1.  Counts all of your objects on your mainstack and substacks and display
 each accordingly
 2.  Compiles a complete copy of all of your code and labels each section.
 3.  Tells other general information about your stack.
 
 If anyone would like a copy and maybe make it better, that would be cool.  I
 find it useful at times and thought others might too.  If so, maybe x-worlds
 would host it as a tool for download.
 
 Please send me a copy off list and we'll be happy to host it!
 
 Regards,
 
 Kevin
 
 -Mark Talluto
 
 Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/
 Runtime Revolution Limited (formerly Cross Worlds Computing).
 Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.
 
 
 Archives: http://www.mail-archive.com/metacard%40lists.best.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Pagination experiences

2000-09-22 Thread Jose L. Rodriguez Illera

Geoff,

I have been working on making a both creator and reader 'ebooks', so a I
have needed   paginating a 'book' from a text file.  The best solution I
have found is to use the pageheights property, as Scott suggests in other
response, because it makes the work very well without effort, but  it is not
so fast as you want.

Finding a particular chunk may be done with a simple 'find' command --very
fast in 100 pages or bigger books. Or you have to 'index' the text to know
in which pages a particular word appears, but this a process that takes more
time to build the index.
Regards,

Jose Luis

-
José L. Rodríguez Illera
Universitat de Barcelona
Passeig Vall d'Hebron, 171
08035 Barcelona  --E
 

 
 From: "Geoff Canyon" [EMAIL PROTECTED]
 Subject: Pagination experiences
 Date: Thu, 21 Sep 2000 17:51:35 -0700
 MIME-Version: 1.0
 Content-Type: text/plain;
 charset=us-ascii
 Content-Transfer-Encoding: 7bit
 In-Reply-To: [EMAIL PROTECTED]
 
 I'm wondering if anyone here has experience writing pagination routines in
 MetaCard. I'm considering writing a routine that would take a 50-100k block
 of text, a font, a font size, a field size, and figure out where the page
 breaks should occur from beginning to end.
 
 The actual goal is to be able to go to an arbitrary chunk of the text, and
 know what page number to put under it.
 
 My first instinct is to use the height of the field and the formattedHeight
 function on chunks of text, finding page-sized chunks and counting them
 until I get to the chunk I want to display. but this is fairly slow across
 perhaps hundreds of pages. By slow I mean more than a second on a fast
 computer.
 
 But my second instinct is to figure out how many lines will fit onto one
 page, figure out how tall those lines are individually, and then just search
 for the largest n such that n*(the number of lines that will fit on a page)
 is still less than the chunk I want to display, and then use n+1 for a page
 number. I'm sure that's not clear, but if someone's done it, I'm betting it
 will be clear to them. This might be much faster, but will it work?
 
 Thanks to anyone who has a suggestion,
 
 Geoff





Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Transposing sound clips?

2000-09-22 Thread ScottYang

In hypercard, there is an option to transpose a single sound up and down a 
scale such as 

play "harpsichord"  "c d e f g a b"

is there a similar property in metacard instead of recording different notes 
for a single sound?

Scott Yang, M.D.
Kadena Pediatrics
Okinawa, Japan

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




DownloadNGo Help?

2000-09-22 Thread Scott Rossi

I'm trying to get a variation of MC's DownloadnGO script to work with a
stack I posted on our Web site (commercial host).  Whenever I run the
script, the data contained in the cached url is HTML generated by my ISP
which says the requested page can't be found.

I've tried accessing Sivakatirswami's Himalayan stack with success, so I'm
pretty sure the problem isn't the script I'm using.  I know I've posted my
test file in binary format so that's not the issue.  This is the address to
the test file I'm using:

http://www.tactilemedia.com/test/majortest.mc

Might this have something to do with the protocol MC uses to retrieve URLs?
Do I need to use a command other than load URL?

Thanks for any help -- I'm stumped.

Regards,

Scott

_
Scott Rossi   Tactile Media - Multimedia  Design
Creative Director Email: [EMAIL PROTECTED]
  Web: www.tactilemedia.com


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Indenting?

2000-09-22 Thread Scott Rossi

Is there any way to indent text in a text field?  I want to try to avoid any
"hardwired" spacing in the text and MC doesn't seem to understand HTML ul
tags.  Any other options?

Thanks  Regards,

Scott

_
Scott Rossi   Tactile Media - Multimedia  Design
Creative Director Email: [EMAIL PROTECTED]
  Web: www.tactilemedia.com


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: DownloadNGo Help?

2000-09-22 Thread David Bovill

Just a thought, but try Metacard 2.3.2 as it has more support for http and
funny (re-directed) url's as often provided by service providers...

 From: Scott Rossi [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 22 Sep 2000 14:48:43 -0700
 To: [EMAIL PROTECTED]
 Subject: DownloadNGo Help?
 
 I'm trying to get a variation of MC's DownloadnGO script to work with a
 stack I posted on our Web site (commercial host).  Whenever I run the
 script, the data contained in the cached url is HTML generated by my ISP
 which says the requested page can't be found.
 
 I've tried accessing Sivakatirswami's Himalayan stack with success, so I'm
 pretty sure the problem isn't the script I'm using.  I know I've posted my
 test file in binary format so that's not the issue.  This is the address to
 the test file I'm using:
 
 http://www.tactilemedia.com/test/majortest.mc
 
 Might this have something to do with the protocol MC uses to retrieve URLs?
 Do I need to use a command other than load URL?
 
 Thanks for any help -- I'm stumped.
 
 Regards,
 
 Scott
 
 _
 Scott Rossi   Tactile Media - Multimedia  Design
 Creative Director Email: [EMAIL PROTECTED]
 Web: www.tactilemedia.com
 
 
 Archives: http://www.mail-archive.com/metacard%40lists.best.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.