Re: picture size

2002-05-05 Thread Richard Gaskin

Robert Brenstein wrote:

> Thanks guys. This is exactly what I need. I did not catch that the
> filename property is actually a filepath that allows me to swap the
> image content dynamically (and the image object resizes accordingly).
> 
> I do not want to import these images. These are external files and I
> just need to acquire their sizes dynamically. The MC version of my HC
> script is thus (having already created an invisible image object):
> 
> set the filename of image "tmp" to fpath
> get the formattedheight of image "tmp"
> get the formattedwidth of image "tmp"
> set the filename of image "tmp" to empty

FWIW, the width and height properties should return the same dimensions as
the formattedwidth and formattedheight, providing the image object in
question has it's lockLocation property set to false.

I love the self-consistency of MetaTalk.  Raney's a hard person to please
when it comes to suggesting language features, but given how many funky
syntax workarounds he's managed to avoid it seems well worth his stringent
evaluation process -- the result is arguably the most full-featured xTalk,
and with the fewest syntactic exceptions to keep in minds when using it.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.9: Publish any Database on Any Site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: shell on OS X

2002-05-05 Thread Mark Talluto


On Sunday, May 5, 2002, at 02:10  PM, Richard MacLemale wrote:

>> How much closer are we to having put Shell() work in OSX?
>
> Scott may answer, but my guess would be "no closer." MetaCard for OS X 
> is a
> Carbon app, and from what I understand there's no way for Carbon apps 
> to be
> able to issue UNIX commands.  Cocoa apps can do this, but rewriting 
> MetaCard
> in Cocoa from the ground up would not be a lot of fun for MetaCard, and 
> from
> what I hear Cocoa isn't totally all there yet.
>
> But what about an external which could issue UNIX commmands and act as a
> "go-between" between Carbon and OS X?
>
> I'm with you... There are a MILLION different things I'd like to do with
> MetaCard for OS X, but I can't do them because MC for OS X doesn't allow
> shell commands.  I end up using mc (darwin), or AppleScript, and I'd 
> much
> rather use MetaCard (OS X version.)  There are a bunch of us who could 
> write
> some serious kick-ass apps if MC could do this.

I heard that we are moving over to a Mach-O build for the OS X version 
of MC on the next release.  So, we should be very close to having Shell 
support on X soon.

-Mark

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



Re: picture size

2002-05-05 Thread Robert Brenstein

>Hi Robert,
>
>>Robert Brenstein wrote:
>>
>>>Is there a simple way to get the pixel sizes of images (jpeg and gif)
>>>in Metacard? In HyperCard, I use the picture command to open them
>>>invisibly (this is important), then fetch the size. The picture
>>>command does not seem to be part of MetaCard.
>>>
>>>picture (fPath & fName),,,false
>>>get pictureheight of window fName
>>>get picturewidth of window fName
>>>close window fName
>>
>>MetaCard's syntax is arguably more self-consistent with the priciples of
>>HyperTalk on this one.  Rather than relying on an external MC has native
>>image objects, with properties that can be querried and set like buttons and
>>fields.
>>
>>In this case, the property you're looking for is the fileName of the image
>>object:
>>
>>   set the filename of image 1 to tMyPath
>>   get the rect of image 1
>>
>>If you don't already have an image object on the card, you can also import
>>image files into a new image object using the import command.
>>
>>--
>>  Richard Gaskin
>
>Richard is right, as always ;-)
>
>But maybe these props could be of any more help to you.
>
>the formattedheight of image "xxx"
>the formattedwidth of image "xxx"
>
>This will return the original height and width of an image.
>
>
>Regards
>
>Klaus Major
>[EMAIL PROTECTED]
>

Thanks guys. This is exactly what I need. I did not catch that the 
filename property is actually a filepath that allows me to swap the 
image content dynamically (and the image object resizes accordingly).

I do not want to import these images. These are external files and I 
just need to acquire their sizes dynamically. The MC version of my HC 
script is thus (having already created an invisible image object):

set the filename of image "tmp" to fpath
get the formattedheight of image "tmp"
get the formattedwidth of image "tmp"
set the filename of image "tmp" to empty

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



Re: metacard digest, Vol 1 #195 - 10 msgs

2002-05-05 Thread Richard MacLemale

On 5/5/02 12:01 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> From: Simon Lord <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> 
> How much closer are we to having put Shell() work in OSX?

Scott may answer, but my guess would be "no closer." MetaCard for OS X is a
Carbon app, and from what I understand there's no way for Carbon apps to be
able to issue UNIX commands.  Cocoa apps can do this, but rewriting MetaCard
in Cocoa from the ground up would not be a lot of fun for MetaCard, and from
what I hear Cocoa isn't totally all there yet.

But what about an external which could issue UNIX commmands and act as a
"go-between" between Carbon and OS X?

I'm with you... There are a MILLION different things I'd like to do with
MetaCard for OS X, but I can't do them because MC for OS X doesn't allow
shell commands.  I end up using mc (darwin), or AppleScript, and I'd much
rather use MetaCard (OS X version.)  There are a bunch of us who could write
some serious kick-ass apps if MC could do this.


-- 
:)
Richard MacLemale
Network Administrator
J. W. Mitchell High School

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



Re: netscape/mozilla

2002-05-05 Thread diskot123

>Mmm, how difficult would it be to write an external for MC which uses
the
>HTML-display module of that code? (For non- commercial use only, of
course.)
Better to write an external which wraps around gecko, netscapes cross
platform browser technology. If your interested in this contact me
offline.

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



Re: UNIX Shell

2002-05-05 Thread Pierre Sahores

Simon Lord a écrit :
> 
> How much closer are we to having put Shell() work in OSX?
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

Sorry, not tested for yet under MacOS X 10.1.4 even if it probably runs
fine too. Other hand, i use it all the time under Linux to run HTMLDOC
(DHTML to PDF on the fly conversions).

Regards, Pierre Sahores

WEB & VPN applications & databases servers
Inspection académique de Seine-Saint-Denis
Qualifier & produire l'avantage compétitif
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



UNIX Shell

2002-05-05 Thread Simon Lord

How much closer are we to having put Shell() work in OSX?

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



Re: netscape/mozilla

2002-05-05 Thread Sjoerd Op 't Land

[EMAIL PROTECTED] wrote/ schreef:

>> Does anyone know in what language are Mozilla and Netscape 6.x written?
> C++. The source is available at mozilla.org, good stuff!
Mmm, how difficult would it be to write an external for MC which uses the
HTML-display module of that code? (For non- commercial use only, of course.)

> Tuviah
Regards, / Groeten,
Sjoerd

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



Re: picture size

2002-05-05 Thread Klaus Major

Hi Robert,

> Robert Brenstein wrote:
>
>> Is there a simple way to get the pixel sizes of images (jpeg and gif)
>> in Metacard? In HyperCard, I use the picture command to open them
>> invisibly (this is important), then fetch the size. The picture
>> command does not seem to be part of MetaCard.
>>
>> picture (fPath & fName),,,false
>> get pictureheight of window fName
>> get picturewidth of window fName
>> close window fName
>
> MetaCard's syntax is arguably more self-consistent with the priciples of
> HyperTalk on this one.  Rather than relying on an external MC has native
> image objects, with properties that can be querried and set like 
> buttons and
> fields.
>
> In this case, the property you're looking for is the fileName of the 
> image
> object:
>
>   set the filename of image 1 to tMyPath
>   get the rect of image 1
>
> If you don't already have an image object on the card, you can also 
> import
> image files into a new image object using the import command.
>
> --
>  Richard Gaskin

Richard is right, as always ;-)

But maybe these props could be of any more help to you.

the formattedheight of image "xxx"
the formattedwidth of image "xxx"

This will return the original height and width of an image.


Regards

Klaus Major
[EMAIL PROTECTED]

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



Re: picture size

2002-05-05 Thread Richard Gaskin

Robert Brenstein wrote:

> Is there a simple way to get the pixel sizes of images (jpeg and gif)
> in Metacard? In HyperCard, I use the picture command to open them
> invisibly (this is important), then fetch the size. The picture
> command does not seem to be part of MetaCard.
> 
> picture (fPath & fName),,,false
> get pictureheight of window fName
> get picturewidth of window fName
> close window fName

MetaCard's syntax is arguably more self-consistent with the priciples of
HyperTalk on this one.  Rather than relying on an external MC has native
image objects, with properties that can be querried and set like buttons and
fields.

In this case, the property you're looking for is the fileName of the image
object: 

  set the filename of image 1 to tMyPath
  get the rect of image 1

If you don't already have an image object on the card, you can also import
image files into a new image object using the import command.
 
-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.9: Publish any Database on Any Site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



picture size

2002-05-05 Thread Robert Brenstein

Is there a simple way to get the pixel sizes of images (jpeg and gif) 
in Metacard? In HyperCard, I use the picture command to open them 
invisibly (this is important), then fetch the size. The picture 
command does not seem to be part of MetaCard.

picture (fPath & fName),,,false
get pictureheight of window fName
get picturewidth of window fName
close window fName

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



Re: MC 2.32 and KDE3 running together again ;-)

2002-05-05 Thread Pierre Sahores

andu wrote:
> 
> --On Sunday, May 05, 2002 01:59:17 +0200 Pierre Sahores
> <[EMAIL PROTECTED]> wrote:
> 
> > Hi List,
> >
> > After installing Suse 8.0 Pro on a x86 based Laptop, i first got
> > troubbles with the "copy, cut and paste" commands of the MC 2.32 IDE
> > Script Editor. I got two ways to get the script editor working again :
> > 1.- by quiting the KDE "Klipper" clipboard app ; 2.- by switching from
> > KDE to an other window manager (not realy the best to do).
> 
> I don't use KDE but try switching to Metacard 2.4.2, 

I'm licensied for MC 2.42 but some of my web apps are not updated, for
yet ! It's why i will continue to use MC 2.32 up to this summer on the
Linux x86 platform :-)

I understand the
> compatibility with recent QT/KDE and Gnome is improved. In my experience
> clipboard functionality on Linux is a matter of luck: I could not cut+paste
> in Netscape 4.77 but it worked fine with Netscape 6.x. on the same
> Slackware 8. Some applications want control+c for copy others want alt+c,
> the truth must be in the middle somewhere;-).

I agree. In between, i'm realy impressed by MacOSX and i will probably
set up production web apps in using it, further.
> 
--snip--
> 
> Regards, Andu Novac


Best Regards, Pierre Sahores

WEB & VPN applications & databases servers
Inspection académique de Seine-Saint-Denis
Qualifier & produire l'avantage compétitif
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard