Re: Implementing mailto:

2000-09-25 Thread Dave Cragg

At 6:50 PM +0100 9/24/00, Hugh Senior wrote:

set the hideConsoleWindows to true
if "NT" is in the systemVersion then set the shellCommand to "cmd.exe"
put "[EMAIL PROTECTED]" into tAddress
put quote  "my Subject"  quote into tSubject
put quote  "Hello."  quote into tBody
put "start mailto:"  tAddress  "?subject="  tSubject  "?body=" 
tBody into tCom
get shell(tCom)

This worked first time as is. Okay, so Eudora doesn't handle the "?body"
param, but who the hell cares! Yeesh... /H is hoppin' an' jumpin' at this
point.

The ONLY line of concern is "if NT is in the systemVersion". Is the
shellCommand still "cmd.exe" for Win95, Win98 and Win2000?

It looks like you can avoid this issue altogether if you follow 
Sjoerd's suggestion. (Thanks, Sjoerd. Nice one.)

However, if you do go with the shell function, setting the 
shellCommand to "cmd.exe" is recommended for NT in the MC reference. 
I've never got any shell command to work on NT without setting it, so 
I'd suggest you do it. Don't set it for Win 95/98; the default is set 
to work for those. But I don't know for Win 2000. Luckily, no one I'm 
developing for (mainly corporates) has any plans to install Win 2000 
until next year. Does anyone know?

On the same topic, can anyone using Win 2000 tell us what is returned 
by the the systemVersion function?

Cheers
Dave Cragg

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: Feature request 14312: groupReferences property

2000-09-25 Thread David Bovill

Yes.

 From: Phil Davis [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sun, 24 Sep 2000 14:00:35 -0700
 To: [EMAIL PROTECTED]
 Subject: Re: Feature request 14312:  groupReferences property
 
 
 
 David Bovill wrote:
 
 As part of my campaign to make distributable components out of Metacard
 groups... I find myself dissatisfied with the way that Metacard looks for an
 object by name.
 
 I am at the moment writing for every single object reference that I script
 something like:
 
 put "hello" into fld "Text" of the owner of me
 
 The reason for this is just in case there is another field named text in the
 environment. Now this is beginning to annoy me as it is long winded. I would
 prefer "fld Text" to refer first to a field named text within the current
 group, and then anything in groups within any groups in that group, and not
 to something outside of the current group unless I explicitly say so.
 
 So this new thing would allow shorter references to objects within
 a group when more than one group exists, similar to the way "the
 defaultStack" allows shorter references to objects within a stack
 when you have multiple stacks open. So it kind of sharpens the
 focus of the reference, or more specifically defines their
 context. Correct?
 
 
 
 Now as this would clearly cause too many compatibility problems, how about a
 little change so that I can set an object property (stack or group), so that
 when "groupReferences is true" all references to controls are within the
 current group (ie the owner)? This should apply to numbers as well as names.
 
 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.


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: resizing and screen resolution

2000-09-25 Thread Kevin Miller

On 24/9/00 7:41 pm, Sjoerd Op 't Land [EMAIL PROTECTED] wrote:

 Agreed, but isn't there an AppleEvent for changin the resolution?

There may be - but changing resolution with MC open is not supported.  What
you probably could do is create an AppleScript applet - as "do you want to
change" on startup, run the applet, quit MC and the applet changes the
resolution and relaunches the MC file / standalone.

Regards,

Kevin

 Sjoerd

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: Multiple resolutions

2000-09-25 Thread Geoff Canyon

Just a brief follow-up, over the weekend I got two different sizes of my application 
to work pretty well. I'll go for a third tomorrow/today (it's pretty late). A few 
things I noticed are:

MetaCard ROCKS! This feature was fairly easy to implement, and had only a few gotcha's 
along the way.

If you expect a group to resize along with the objects it contains, don't lock its 
location. It worked the first couple times, then stopped resizing. I don't know what 
caused it to stop working, but unlocking the location fixed it.

If you are using a group in the stack as the menu, expect problems when you resize the 
stack. The method that seemed to work for me was, I think: set the rect of the stack; 
this causes the menubar group to show. Then set the edit menus property of the stack 
to true, which seems to cause nothing to happen. Then set the edit menus property to 
false, which causes the group to disappear and the stack to resize. Don't mess with 
the rect of the stack while editing a group.

You can place text with the group property into a field using the HTML text property: 
set the htmltext of fld "whatever" to someTextWithGroups. Works great, thanks Scott!

Finally, I'm sending this from the mail application in Mac OS X. Who wants to touch 
me? :-) I haven't run MetaCard yet, because I don't have a Classic environment in 
which to do so. The iMac I'm running on had a nervous breakdown a week ago, and 
refuse(d) to realize that it could boot from its perfectly fine hard drive. 
Reformatting in the process of installing OS X fixed the no-boot thing, but leaves no 
Classic behind. By the way, 96MB of RAM, and so far so good...

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: resizing and screen resolution

2000-09-25 Thread Geoff Canyon

On Monday, September 25, 2000, at 04:21 AM, Kevin Miller wrote:

 There may be - but changing resolution with MC open is not supported.   

I'm curious what you mean by "not supported." While building an 800x600 version of my 
app's main window earlier today/yesterday, I was dropping from 1024x768 to 800x600 and 
back again repeatedly with MetaCard running, checking to see what I was doing, with 
seemingly no ill effects.

So is it just that there aren't any known issues, but it's not officially supported, 
or is there actually something bad happening and I just didn't notice and/or dodged a 
bullet?

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.




Implementing mailto: Mac

2000-09-25 Thread Hugh Senior

Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC:

put word 1 to -2 of \

queryRegistry("hkey_local_machine\software\classes\mailto\shell\open\command
\") \
  into tBrowserPath
launch "mailto:"tAddress with tBrowserPath

Now... Does anyone have the AppleEvent equivalent for a Mac?

/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

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.




Implementing mailto: Mac

2000-09-25 Thread Hugh Senior

Apologies - I see Craig already answered this back on 13.03.00:

put "Mailto:"tAddress into tEmailAddress
send tEmailAddress to program "Finder" with "GURLGURL"

/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

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.




dll's

2000-09-25 Thread Monte Goulding

Hi
since I've been playing with the xworlds external collection I've noticed 
the number of dll's installed on by computer. Is there any way to find out 
what these do and what parameters they take? The way I figure it if someones 
going to go to the trouble of filling up my computer with dll's then i might 
as well make the most of it.

By the way I think the environment variables need to be better documented in 
the index (there is no listing of $0 or $1).
I didn't realise that when you added an external to a stack it didn't 
actually import it until I was trying to open a standalone (that was meant 
to use EXT.exe) in front of a potential client. Probably more my fault than 
anyone else's but a bit more documentation would save a lot of support time.

Regards
Monte
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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: dll's

2000-09-25 Thread Scott Raney

On Mon, 25 Sep 2000, Monte Goulding wrote:

 Hi
 since I've been playing with the xworlds external collection I've noticed 
 the number of dll's installed on by computer. Is there any way to find out 
 what these do and what parameters they take? The way I figure it if someones 
 going to go to the trouble of filling up my computer with dll's then i might 
 as well make the most of it.

You can't use any of them with MetaCard.  They all take typed
arguments, which would mean you'd have to learn and keep track of your
ints and shorts and floats and pointers and such (if you've ever seen
the mess that's become of the ToolBook scripting language because of
their strong dependence on this, you'd surely puke).  Furthermore,
most of them are highly dependent on the application they were
designed for and so the odds are that no more than a handful of them
would be of any use at all anyway.

 By the way I think the environment variables need to be better documented in 
 the index (there is no listing of $0 or $1).

These are not really environment variables, but instead the parameters
passed to the executable when it starts up.  Which in 99% of the cases
on Windows are either empty or just contain the name of a stack to
open.  The only way to really use them is by starting up an executable
from the MSDOS prompt, and who does that?

 I didn't realise that when you added an external to a stack it didn't 
 actually import it until I was trying to open a standalone (that was meant 
 to use EXT.exe) in front of a potential client. Probably more my fault than 
 anyone else's but a bit more documentation would save a lot of support time.

I'm not sure I follow this.  Maybe something to do with the
differences between the way these things are done on the Windows and
UNIX (externals are separate files) from the way they're done on the
Mac (resources attached to a file).
  Regards,
Scott

 Regards
 Monte
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 
 Share information about yourself, create your own public profile at 
 http://profiles.msn.com.


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: resizing and screen resolution

2000-09-25 Thread Scott Raney

On Mon, 25 Sep 2000, Geoff Canyon wrote:

 On Monday, September 25, 2000, at 04:21 AM, Kevin Miller wrote:
 
  There may be - but changing resolution with MC open is not supported.   
 
 I'm curious what you mean by "not supported." While building an 800x600 version of 
my app's main window earlier today/yesterday, I was dropping from 1024x768 to 800x600 
and back again repeatedly with MetaCard running, checking to see what I was doing, 
with seemingly no ill effects.
 
 So is it just that there aren't any known issues, but it's not officially supported, 
or is there actually something bad happening and I just didn't notice and/or dodged a 
bullet?

Actually it should be fine to do this on both Windows and Mac
(UNIX/X11 doesn't support this anyway).  The only serious issue that I
can think of is that the new windowBoundingRect property isn't reset
when you change the resolution, so windows may not always open in
appropriate places.  What probably *will* get you into trouble is
changing the color depth (8/16/32).  In particular changing in or out
of 8-bit depth from either of the others will likely get you a
psychedelic display though probably not a crash or other misbehavior.
  Regards,
Scott

 gc


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: resizing and screen resolution

2000-09-25 Thread Mark Mitchell
Thanks to Kevin and Geof and Gary, and others who replied offlist for their helpful 
suggestions.  Setting the backdrop to black and shooting for an average screen 
resolution of around 800 x 600 seems the best bet.  I hadnt realized the backdrop 
feature was available.  I found it in supercard too!  So thanks again.  I'm a little 
worried that screen resolutions will simply continue to increase...but we are not the 
only ones with this problem I suppose.  ALL my software, including my word processors, 
got very small at the 1000+ resolution.  

thanks again all,

mark m.


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.


Another Dumb Question

2000-09-25 Thread Scott Rossi

Is a .dat file on Windows just a generic data file?

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: Implementing mailto: Mac

2000-09-25 Thread andu




Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC:

put word 1 to -2 of \

queryRegistry("hkey_local_machine\software\classes\mailto\shell\open\command
\") \
  into tBrowserPath
launch "mailto:"tAddress with tBrowserPath

I think originally you wanted to do this within MC. I just found out there is nslookup 
for windows (probably a port from Linux) which can be called with "shell()" and return 
the mail server given the domain name([EMAIL PROTECTED]).
Nslookup is here: http://www.trumphurst.com/dnsocx/nslookup.exe
and the dos commands are :

Using nslookup, you can find the email server of your domain, as shown in the sample 
session below.
 Start a MS-DOS command prompt (in our case we use shell()) and type the nslookup 
command:

   C:\ nslookup
   Default Server:  youserver.yourdomain
   Address:  X.X.X.X
set type=MX
microsoft.com
   microsoft.com   MX preference = 10, mail exchanger = 
mail1.microsoft.com
   microsoft.com   MX preference = 20, mail exchanger = 
mail2.microsoft.com
   microsoft.com   MX preference = 30, mail exchanger = 
mail3.microsoft.com
   microsoft.com   MX preference = 40, mail exchanger = 
mail4.microsoft.com
   microsoft.com   MX preference = 50, mail exchanger = 
mail5.microsoft.com
The lowest preference indicates the best (primary) mail server. A mailer would try 
it first and if it
  cannot connect to this server, it would use other servers (by order of 
preference).


Now... Does anyone have the AppleEvent equivalent for a Mac?

I also found a perl script which gets the mail server name from InternetConfig. It 
just needs to be translated into Metatalk:

use Mac::InternetConfig;
print $InternetConfig{kICSMTPHost()};

I tested it and it works I just don't know perl ;-)


/H
Hugh Senior


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.




Rookie question - mouseUp on unlocked field

2000-09-25 Thread Tim Barber
Title: Rookie question - mouseUp on unlocked field





Hi all


I'm just fiddling around trying to learn how to use MC. I'm creating a simple temperature converter, and I've encountered a problem.

My card consists of two fields (Degrees C and Degrees F), two labels(for the fields) and two buttons (Convert and Quit)


If I understand the MetaTalk reference correctly (and it's more than likely I don't), an unlocked field doesn't receive mouseUp messages unless you hold down the ctrl key (I'm on a Mac). How then do I script the field to clear itself when I click in it? I've tried using a selectionChanged message handler, but it started acting weird. Here is the code I'm using.

on selectionChanged #or mouseUp
 put empty into field Degrees C
 put empty into field Degrees F #I want it to clear both fields
 select field Degrees C
end selectionChanged #or mouseUp

My plan is that you click on either field and it clears both. You then enter whichever value you have (Centigrade or Fahrenheit) into the field, and click the Convert button. Depending on which field you entered, the Convert button calculates the result and populates the other.

TIA
Tim





Re: Rookie question - mouseUp on unlocked

2000-09-25 Thread andu



Hi all

I'm just fiddling around trying to learn how to use MC.  I'm creating a
simple temperature converter, and I've encountered a problem.

My card consists of two fields (Degrees C and Degrees F), two labels(for the
fields) and two buttons (Convert and Quit)

If I understand the MetaTalk reference correctly (and it's more than likely
I don't), an unlocked field doesn't receive mouseUp messages unless you hold
down the ctrl key (I'm on a Mac).  How then do I script the field to clear
itself when I click in it?  I've tried using a selectionChanged message
handler, but it started acting weird.  Here is the code I'm using.

Tim, what you are trying to do is kind of against expectations but ... Imagine you 
entered the wrong number in one of the fields and you want to select some or all of it 
in order to delete/change it. 
Set the lockText of the fields to true when you click the Convert button; that would 
enable the fields to accept a mouseUp. In that mouseUp you can put empty into the 2 
fields and set the lockText of them to false.


on selectionChanged #or mouseUp  put empty into field "Degrees C"  put empty into 
field "Degrees F" #I want it to clear both fields  select field "Degrees C"end 
selectionChanged #or mouseUp

My plan is that you click on either field and it clears both.  You then
enter whichever value you have (Centigrade or Fahrenheit) into the field,
and click the Convert button.  Depending on which field you entered, the
Convert button calculates the result and populates the other.

TIA
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.




RE: Rookie question - mouseUp on unlocked

2000-09-25 Thread Tim Barber
Title: RE: Rookie question - mouseUp on unlocked





Of course, how simple! 


Thanks Andu
--
From:  andu
Reply To:  [EMAIL PROTECTED]
Sent:  Tuesday, 26 September 2000 13:58
To:  [EMAIL PROTECTED]
Subject:  Re: Rookie question - mouseUp on unlocked




Hi all

I'm just fiddling around trying to learn how to use MC. I'm creating a
simple temperature converter, and I've encountered a problem.

My card consists of two fields (Degrees C and Degrees F), two labels(for the
fields) and two buttons (Convert and Quit)

If I understand the MetaTalk reference correctly (and it's more than likely
I don't), an unlocked field doesn't receive mouseUp messages unless you hold
down the ctrl key (I'm on a Mac). How then do I script the field to clear
itself when I click in it? I've tried using a selectionChanged message
handler, but it started acting weird. Here is the code I'm using.


Tim, what you are trying to do is kind of against expectations but ... Imagine you entered the wrong number in one of the fields and you want to select some or all of it in order to delete/change it. 

Set the lockText of the fields to true when you click the Convert button; that would enable the fields to accept a mouseUp. In that mouseUp you can put empty into the 2 fields and set the lockText of them to false.


on selectionChanged #or mouseUp put empty into field Degrees C put empty into field Degrees F #I want it to clear both fields select field Degrees Cend selectionChanged #or mouseUp


My plan is that you click on either field and it clears both. You then
enter whichever value you have (Centigrade or Fahrenheit) into the field,
and click the Convert button. Depending on which field you entered, the
Convert button calculates the result and populates the other.

TIA
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.






Metacard Site Went Public

2000-09-25 Thread Sivakatirswami

We went public tonite with our new Metacard site. You can see the
announcement advertising "Mystic Mouse" on our daily web page. (and a
picture of yours truly with our one of our books in Russian.

http://www.gurudeva.org/today

The site itself is at

http://www.himalayanacademy.com/studyhall/

I really want to thank everyone for their support and help along the way.
Can't believe how easy it was with MC and what a nightmare it would have
been had we gone with a HTML/JAVA based platform.

We still have a long ways to go. And it will be interesting to see if we can
do a "paradigm" shift away from the misconception that

web = netscape and or IE.

Scott: I built the PPC with the latest build of 2.3.2b2.1 Let me know a
month from how if you have any referrals from our domain form our MC
advocacy page. 

Aloha from Hawaii.


Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
www.HinduismToday.com
www.HimalayanAcademy.com
[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.