Strange behavior

2002-01-11 Thread xbury . cs

on textoid txt
  lock messages
  create stack
  set name of the topstack to Textoid
 go to card 1 of stack textoid 
-- why is the previous line necessary? go figure...
 create field
 set the rect of fld 1 to the rect of card 1
 put txt into fld 1
end textoid

then type in the message something like:
textoid hello

Sounds simple, but for some crooked reason, what happens is that I get two
stacks, both are called textoid, one is empty, the other has one field
with the rect of the stack and the text that was in the param, and then
there's at least 1 more raw field with no text above the first one...

If i reinstall MC, and put it into the blank home stack, it works correctly.
But then what good is the lock messages for? I've commented out also the
openstack/newfield, etc... scripts... 

Can anyone explain?


Visit us at http://www.clearstream.com   
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

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



RE: Strange behavior

2002-01-11 Thread xbury . cs

Actually i got the same behavior after a couple runs from the clean
installed MC stack.

I tried in vain to put a breakpoint but that command doesn't work for
nothing.

Anyone has any idea?
Im really lost... and nothing in the debugging section seems to work in this
case. 
There is no error in the script, nothing should intercept the script if lock
messages is on but it happens... (im using 2.4b2 and b4). Version 2.3 seems
to work ok but im not working with that version anymore...

thanks again for the help!
Xavier
 
 on textoid txt
   lock messages
   create stack
   set name of the topstack to Textoid
  go to card 1 of stack textoid 
 -- why is the previous line necessary? go figure...
  create field
  set the rect of fld 1 to the rect of card 1
  put txt into fld 1
 end textoid
 
 then type in the message something like:
 textoid hello
 
 Sounds simple, but for some crooked reason, what happens is 
 that I get two
 stacks, both are called textoid, one is empty, the other 
 has one field
 with the rect of the stack and the text that was in the 
 param, and then
 there's at least 1 more raw field with no text above the 
 first one...
 
 If i reinstall MC, and put it into the blank home stack, it 
 works correctly.
 But then what good is the lock messages for? I've commented 
 out also the
 openstack/newfield, etc... scripts... 
 
 Can anyone explain?
 
 
 Visit us at http://www.clearstream.com   
   
 IMPORTANT MESSAGE
 
 Internet communications are not secure and therefore 
 Clearstream International does not accept legal 
 responsibility for the contents of this message.
 
 The information contained in this e-mail is confidential and 
 may be legally privileged. It is intended solely for the 
 addressee. If you are not the intended recipient, any 
 disclosure, copying, distribution or any action taken or 
 omitted to be taken in reliance on it, is prohibited and may 
 be unlawful. Any views expressed in this e-mail are those of 
 the individual sender, except where the sender specifically 
 states them to be the views of Clearstream International or 
 of any of its affiliates or subsidiaries.
 
 END OF DISCLAIMER
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard
 
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: WDEF

2002-01-11 Thread David Bovill

I think it's a number - you should be able to get it from Apple - but I'll
sell you one if you want :)

 From: Simon Lord [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: WDEF
 
 So who here is selling this WDEF?  Does it work under OSX?  Is
 it ULTRA stable?  And can I buy it now?

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



Re: Strange behavior

2002-01-11 Thread Ken Ray

The reason you get the strange behavior is the go to card 1 of stack
textoid line. The first time I ran your code, I got one window that
looked right. Then I closed the window and ran it again, and experienced the
behavior you identified.

What's happening is that when you close a stack, if the destroyStack
property of the stack is not turned on, the stack stays in memory, even if
it is closed. The next time you go to open a stack by that same name, it
quickly grabs it from memory.

In your case, this is what happens (after you have run this already once):

1) the stack textoid is closed, but remains in memory (stack #1)
2) you run the script and encounter the create stack command, which
creates a stack in front of stack #1 and names it textoid as well
3) the go to card 1 of stack textoid command actually goes to stack #1,
and brings it to the front (this stack already has a field in it, sized
properly)
4) you then create a field (which actually creates fld 2 since there's
already one there), then set the rect of fld 1 (which has previously been
set to its proper size in the previous session)
5) finally, you put text into fld 1

To fix this, I would recommend (a) setting the destroystack and
destroywindow properties of the stack to true (couldn't hurt to have it
always flushed from memory), and (b) change your go to card 1 line to set
the defaultStack to the topStack (which moves the internal focus to the new
stack you created so you can create your field).

Hope this helps,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 3:46 AM
Subject: RE: Strange behavior


 Actually i got the same behavior after a couple runs from the clean
 installed MC stack.

 I tried in vain to put a breakpoint but that command doesn't work for
 nothing.

 Anyone has any idea?
 Im really lost... and nothing in the debugging section seems to work in
this
 case.
 There is no error in the script, nothing should intercept the script if
lock
 messages is on but it happens... (im using 2.4b2 and b4). Version 2.3
seems
 to work ok but im not working with that version anymore...

 thanks again for the help!
 Xavier

  on textoid txt
lock messages
create stack
set name of the topstack to Textoid
   go to card 1 of stack textoid
  -- why is the previous line necessary? go figure...
   create field
   set the rect of fld 1 to the rect of card 1
   put txt into fld 1
  end textoid
 
  then type in the message something like:
  textoid hello
 
  Sounds simple, but for some crooked reason, what happens is
  that I get two
  stacks, both are called textoid, one is empty, the other
  has one field
  with the rect of the stack and the text that was in the
  param, and then
  there's at least 1 more raw field with no text above the
  first one...
 
  If i reinstall MC, and put it into the blank home stack, it
  works correctly.
  But then what good is the lock messages for? I've commented
  out also the
  openstack/newfield, etc... scripts...
 
  Can anyone explain?
 
 
  Visit us at http://www.clearstream.com
 
  IMPORTANT MESSAGE
 
  Internet communications are not secure and therefore
  Clearstream International does not accept legal
  responsibility for the contents of this message.
 
  The information contained in this e-mail is confidential and
  may be legally privileged. It is intended solely for the
  addressee. If you are not the intended recipient, any
  disclosure, copying, distribution or any action taken or
  omitted to be taken in reliance on it, is prohibited and may
  be unlawful. Any views expressed in this e-mail are those of
  the individual sender, except where the sender specifically
  states them to be the views of Clearstream International or
  of any of its affiliates or subsidiaries.
 
  END OF DISCLAIMER
  ___
  metacard mailing list
  [EMAIL PROTECTED]
  http://lists.runrev.com/mailman/listinfo/metacard
 
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard


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



Re: Strange behavior

2002-01-11 Thread andu

[EMAIL PROTECTED] wrote:
 
 on textoid txt
   lock messages
   create stack
   set name of the topstack to Textoid
  go to card 1 of stack textoid
 -- why is the previous line necessary? go figure...
  create field
  set the rect of fld 1 to the rect of card 1
  put txt into fld 1
 end textoid
 
 then type in the message something like:
 textoid hello

on textoid txt
  create stack textoid
 set the defaultstack to textoid
 create field field1
 set the rect of fld field1 of stack textoid to (the rect of stack
textoid)
 put txt into fld field1 of stack textoid
end textoid


Didn't test it but that's how I would start.

 
 Sounds simple, but for some crooked reason, what happens is that I get two
 stacks, both are called textoid, one is empty, the other has one field
 with the rect of the stack and the text that was in the param, and then
 there's at least 1 more raw field with no text above the first one...
 
 If i reinstall MC, and put it into the blank home stack, it works correctly.
 But then what good is the lock messages for? I've commented out also the
 openstack/newfield, etc... scripts...
 
 Can anyone explain?
 
 Visit us at http://www.clearstream.com
 
 IMPORTANT MESSAGE
 
 Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.
 
 The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.
 
 END OF DISCLAIMER
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard

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



Re: Restart a Mac

2002-01-11 Thread LiangTyan Fui

On 1/10/02 7:09 AM, jbv wrote:

 How can I restart a Mac from within a MC script ?
 
 Should I use applevents, and send quit to the Finder
 or something similar ?

on mouseUp
  do tell application  quote finder quote  to restart as \
 applescript
end mouseUp

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

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



ReReReRe: ss (searchScript)::::-))))

2002-01-11 Thread Ernst M. Reicher

J. Landman Gay wrote on
  I can't find anything like the HC ss
 (searchScript):
but I suspect a lot of us
have made our own

Switching from Macs and HyperCard to windo(w)s and metaCard...
I missed something like ss and some other things like vw and mw.
I deplore that such things aren´t in MC
sorry to say that but Revolution is to me still more a fancy-work than a
real working area...

People using MC should find a place where they put their
development-environment-enhancements/improvements as something like
opensource...

We don´t need to reinvent something like gimp or linux - - but a more
comfortable development-environment with our beloved metaCard should be
reason?!?!?!?

Regards,
  Ernst

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



POST not working in 2.4.1?

2002-01-11 Thread Sadhunathan Nadesan

Hello,

Has there been any response to Swami's query below?  I am
having a similar problem with Post.  Worked on 2.3. Fails
on 2.4 - IF - I build a standalone.

I'm using a mail reflector (Matt's FormMail.pl), I have some
code that:

Hasn't changed

Works from a Windows standalone that was built under 2.3

Works as an interpreted (.mc) file from within the 2.4
development environment

Does Not Work when compiled into a 2.4 standalone for Windows.

I would think this is either a bug, or some resource I'm missing?  I
moved all resources into the stack.

I get the same behavior as SivaKatirswami, namely, the it returned
by the post command is empty (and nothing happens).

The code line is something like this (name of webserver changed to
protect the innocent).

Post tText to url  http://www-sd.castandcrew.com/cgi-bin/FormMail.pl;


Be happy to hear from anyone who has a work around before I send in 
a bug report.

Thanks!
Sadhu



.
| Message: 6
| Date: Tue, 01 Jan 2002 14:37:35 -1000
| Subject: POST not working in 2.4.1?
| From: Sivakatirswami [EMAIL PROTECTED]
| To: Metacard List [EMAIL PROTECTED]
| Reply-To: [EMAIL PROTECTED]
| 
| I have a script which works in 2.3.2 but not in 2.4.1
| 
| it posts a complete URI to a CGI on another server. The CGI check to see if
| the file exists and returns true or false..
| 
|   start using stack libURL
|   put tMonth / tFinalDateString/index.html after tPastFile
|   POST tPastFile to url www.ourOtherServer.com/cgi-bin/exists.cgi
|   delete line 2 of it
|   if it = true then
|   ## build html links to that day in the past
|   ## and post to today's page.
| 
| anyway... it is empty now under 2.4.1 even when the file exists... proven,
| because I can run the same procedure in the same stack under 2.3.2 and get
| true back for the same request..
| 
| So, how to implement POST now?
| 
| Hinduism Today
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Window Shape/Style

2002-01-11 Thread Simon Lord

Not getting much of a responce so I'll rephrase the question.  
Who here can tell me how I can create a stack that uses a custom 
shape?

I need some sort of external to change the shape right?  I'd 
like to be a client of the person that can sell me the solution.

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



Undoing

2002-01-11 Thread David Epstein

Has anybody found a good way to make the standard Undo command apply to
specific scripted routines?

It seems pretty straightforward to store the status quo ante situation,
and catch an undo command that would put things back.  The problem is how to
make that option expire as soon as it should.  Certainly I'd want the
undo-this-routine option to disappear if the user has since done something
that Metacard itself makes undoable (like typing in a field); or if the user
has gone to some other card.  Is there a reasonable list of system messages
that might be intercepted and taken as signals to clear the custom undo
buffer?  Is there some way to detect when MC's own undo option (for its own
undoable routines) has become (or whether it remains) available?

Thanks for any thoughts.

David Epstein

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



Re: POST not working in 2.4.1?

2002-01-11 Thread Sivakatirswami

on 1/11/02 3:04 PM, Sadhunathan Nadesan at [EMAIL PROTECTED] wrote:

 I get the same behavior as SivaKatirswami, namely, the it returned
 by the post command is empty (and nothing happens).
 
 The code line is something like this (name of webserver changed to
 protect the innocent).
 
 Post tText to url  http://www-sd.castandcrew.com/cgi-bin/FormMail.pl;

This was solved:
=
start using stack libURL
Post tText to url  http://www-sd.castandcrew.com/cgi-bin/FormMail.pl;
==

should work. Previously I had not put the http://; in front on the URL.
This is important as libURL handles both FTP and HTTP and parses the
beginning of the URL to handle it properly.

Post tText to url www.whoever.org/cgi-bin/whatever.cgi

will NOT work.





Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org

Read The Master Course Lesson of the Day at
http://www.gurudeva.org/lesson.shtml

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



Re: Window Shape/Style

2002-01-11 Thread Simon Lord

Ok, thanks for the private responses but what I need to do is 
sell a stack whose shape looks like a circle, star, car, rounded 
corners etc.

I'm told the only way to change the outline shape of a stack is 
through a WDEF external.  I would like to purchase this external 
from someone.

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



Next wish: Window outline...

2002-01-11 Thread Simon Lord

I would like to create a custom resize window widget to 
replace the default OS look which is currently provided.  You 
know, that thing we click on to drag the window and resize it to 
be larger/smaller.

The problem is that I need to simulate the stacks outline as I 
drag.  I can only do this internal to the card, I'd like the 
outline to appear outside the stack as well - to show how big 
the window will be if they let go at that point etc.

This gonna cost me another external?

:^$

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



MetaCard Fanzine

2002-01-11 Thread erik hansen


just added a MetaCard Fanzine to my website
(see WAY below). so far there is one section,
Tools featuring sites from the list. 3 so far!

next up is a Handlers section for homemade ss
vw mw and you name it handlers. i know there are
a lot of great collections on the HyperCard list,
but i did not find anything along these lines
designed for especially for MetaCard.

i will only use links posted in the list and
ASSUME that the author is amenable. maybe for
commercial sites i should get confirmation, even
for a link. or are addresses considered public
domain?

there are undoubtedly scores of very handy
utility handlers in the archives. it may be a
while before i read them all closely, right now
it is tutorial time for me. please repost on the
list anything of general utility that should have
a wider audience.

Alain Farmers freeGUI etc are an inspiration as
are many other excellent xTalk sites. Jacqui's
HyperCard/MetaCard tutorial is the most
immediately useful for these purposes.

this is all tentative and subject to change
according to people's responses and advice.


--- Ernst M. Reicher [EMAIL PROTECTED] wrote:
 J. Landman Gay wrote on
   I can't find anything like the HC ss
  (searchScript):
 but I suspect a lot of us
 have made our own
 
 Switching from Macs and HyperCard to windo(w)s
 and metaCard...
 I missed something like ss and some other
 things like vw and mw.
 I deplore that such things aren´t in MC
 sorry to say that but Revolution is to me still
 more a fancy-work than a
 real working area...
 
 People using MC should find a place where they
 put their development environment 
enhancements/improvements
 as something like opensource...
 
 We don´t need to reinvent something like gimp
 or linux - - but a more
 comfortable development-environment with our
 beloved metaCard should be
 reason?!?!?!?
 
 Regards,
   Ernst


=
[EMAIL PROTECTED] http://www.erikhansen.org

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard