deleting files

2001-05-28 Thread Klaus Major

Hi folks,

i found an irritating behaviour, when deleting files in a repeat-loop.

Fortunately i found a solution fr that, too.

In case someone is interested:

btn-script:
...
set the directory to soundordner()
get the files
  repeat with i = 1 to the num of lines of it
if there is a file (soundordner()  line i of it) then
  delete file (soundordner()  line i of it)
end if
  end repeat
...

With that script, i had to click the btn several times
to get rid of ALL the files in that folder. (?)
(Yes, i even waited a couple of minutes, but 1 file was
always left in that folder.

Now i added just 1 short wait-statement and the files
are gone with ONE click.

...
  repeat with i = 1 to the num of lines of it
if there is a file (soundordner()  line i of it) then
  delete file (soundordner()  line i of it)
  wait 5  ##!!!
end if
  end repeat
...

Maybe this is helpful to others, too.

(Can somebody explain why this workaround is necessary???)


Regards


Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


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




Re: password

2001-05-28 Thread Sjoerd Op 't Land

[EMAIL PROTECTED] wrote/ schreef:

 How can someone view the script of a stack if the passkey/password has been
 forgotten?
He can't.

If memory serves, you can let the MetaCard Corp. decrypt a stack for some
money, but only if you didn't make a standalone of it.

Hope this helps,
Sjoerd


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




Re: Query

2001-05-28 Thread Sjoerd Op 't Land

Xavier asked:

 How many people here have problems loosing their subscription every week?
 
 What OS and client email are you using?
Outlook Express 5.01/ MacOS 9.0.4/ Performa 5400/ 160 MHz with single mode
and a filter in Outlook that places the mails in a special folder with a
thread works fine here.

Regards,
Sjoerd


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




Re: HTMLText MC suggestions

2001-05-28 Thread Sjoerd Op 't Land

Rodney Tamblyn wrote/ schreef:

 1. It would be good if MC would support font face tags with multiple fonts
 that editors like Dreamweaver commonly insert, eg: font face=Verdana, Arial,
 Helvetica, sans-serif
 At present MC will ignore these and use the default font instead.  It should
 at least try to use the first font listed in the tag.
 
 2. MC should returns in HTML imports, at present it seems to add extra space
 where the return was:
Agreed.

 #swap out Dreamweaver multiple font selections
 repeat until offset(Verdana, Arial, Helvetica, sans-serif,data) = 0
 get offset(Verdana, Arial, Helvetica, sans-serif,data)
 delete char it+7 to it+37 of data
 end repeat
 #delete return chars, as MC adds space where these are found
 repeat until offset(return,data) = 0
 delete char offset(return,data) of data
 end repeat
why not:
  replace Verdana, Arial, Helvetica, sans-serif with Verdana in data
  -- and:
  replace return with empty in data
  -- or the whole thing even with:
  put replaceText(replaceText(data,return,),Verdana, Arial, Helvetica,
sans-serif,Verdana)
  -- I have the starter kit, so I've to be short, you know...

 Rodney
Regards,
Sjoerd


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




Metacard interface for ACIUS 4D Database

2001-05-28 Thread Sivakatirswami

Has anyone ever gotten Metacard to read the data from an ACIUS 4D data base
data file?

I am just interested in reading it for now. The database data file is on a
server on the LAN. 


Hinduism Today

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



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




Messages and Scope

2001-05-28 Thread Robin-David Hammond


In the documentation 

metaTalk Reference (111)
Messages by Object :
Not that objects that contain other objects can get messages from any of these
objects, because if a message is not handled by an objects script, it is passed
up to its owner.

so if you click on a button , and there is no mouseDown handler, but the CARD to
which it belongs had a mouseDown handler, then the card handler is used.

so far so good. messages pass from objects to those objects that contain it
until one of them contains a handler that does not call the pass procedure.

i created a an object (a group of 3 atomic graphical elements) and gave it a
script. the object had clearly defined boarders. the script included a mouseDown
handler. clicking ANYWHERE on the card called that objects handler. 

Is this defined as correct behavior?

thankyou

robin-david hammond



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




Re: Messages and Scope

2001-05-28 Thread Phil Davis

- Original Message -
From: Robin-David Hammond [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 28, 2001 6:30 PM
Subject: Messages and Scope



 In the documentation

 metaTalk Reference (111)
 Messages by Object :
 Not that objects that contain other objects can get messages from any of
these
 objects, because if a message is not handled by an objects script, it is
passed
 up to its owner.

 so if you click on a button , and there is no mouseDown handler, but the
CARD to
 which it belongs had a mouseDown handler, then the card handler is used.

 so far so good. messages pass from objects to those objects that contain
it
 until one of them contains a handler that does not call the pass
procedure.

 i created a an object (a group of 3 atomic graphical elements) and gave it
a
 script. the object had clearly defined boarders. the script included a
mouseDown
 handler. clicking ANYWHERE on the card called that objects handler.

 Is this defined as correct behavior?


In the HyperCard model, each card resides in a background. Since this is the
model upon which MC is based, I assume it uses the same object hierarchy
model (even though MC bkgnds are different animals from HC bkgnds).

That's why I would say you're experiencing correct behavior from MC.
Supporting evidence: if you have a stack where a given bkgnd is shared by
more than one card, open it and type in the message box:

answer the number of cards in bg 1

Regards,
Phil Davis



 thankyou

 robin-david hammond



 Archives: http://www.mail-archive.com/metacard@lists.runrev.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@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.