HDTenEightyP/NetNews huggingface dataset:
From: John_Miller@mindlink.bc.ca (John Miller)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Trapping messages between windows?
Date: 17 Aug 92 20:23:07 GMT
Organization: MIND LINK! - British Columbia, Canada
Distribution: world

In message <1992Aug17.070911.10151@usage.csd.unsw.OZ.AU>,
cnquinn@spectrum.cs.unsw.oz.au (Clark Quinn) writes
> While talking to two of my students who are working on an
> adventure game implementation, we came across an interesting
> bit of HyperCard behavior we were wondering if anyone could
> illuminate:

...

>  on mouseStillDown
>    set loc of button "New Button" to the mouseLoc
>  end mouseStillDown
>
>  on mouseUp
>    beep
>  end mouseUp

    [no beep]

>  on mouseDown
>    repeat while the mouse = "down"
>      set loc of button "New Button" to the mouseLoc
>    end repeat
>  end mouseDown

   [combined with the above mouseUp handler always causes a beep]

This is a HyperCard quirk.  If your mouseDown handler
uses a "repeat while the mouse is down" loop,
the mouseUp message is always sent when the mouse is
released, even if the mouse has been moved outside
the button before release.  This was also true
in HyperCard 1.2.5.

It would probably be best to avoid relying on
this quirk.  Perhaps all the processing
should go in your mouseDown handler.

John Miller
Symplex Systems


Newsgroups: comp.sys.mac.hypercard
From: cad0410@ritvax.isc.rit.edu (Cecelia A. Dorn)
Subject: Re: Changing Font of Button?
Reply-To: cad0410@ritvax.isc.rit.edu
Organization: Rochester Institute of Technology
Distribution: comp.sys.mac.hypercard
Date: Mon, 17 Aug 1992 16:46:24 GMT

In article <jpugh-160892231941@90.20.3.200>, jpugh@apple.com (Jon Pugh) writes:
>
>So, if you want to change the font of a button do this:
>
>set textFont of button "Foo" to Geneva
>set textSize of button "Foo" to 9
>set textStyle of button "Foo" to bold
>
>Note that you can only set a button to 1 style, like bold, but not
>bold,italic like you can with general text.  Bummer.
>
>Jon

You CAN set the style of a button to more than one style option like so:

set the textStyle of button "Foo" to "bold","italic","underline"
etc,etc.

You can loose the quotes if you want but don't quote the option list as
a whole or Hypercard will complain thusly: "Can't understand arguements
to command set"

--Cea
From: ward1@husc8.harvard.edu (Lester Ward)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: copy/pasting a card--question...
Date: 21 Aug 92 04:35:47 GMT
Article-I.D.: husc8.ward1.714371747
Distribution: comp.sys.mac.hypercard

bhostetl@silver.ucs.indiana.edu (Brian Hostetler) writes:


>	Here is a little script:
>on AddCard
   lock screen
   push card
   go to cd "Whatever"
>  doMenu Copy Card
   pop card
>  doMenu Paste Card
   unlock screen
>  ask "Please enter the strain name for this card."
>  put it into Card Name:
>end AddCard

Les
Newsgroups: comp.sys.mac.hypercard
From: hlindley@alfred.carleton.ca (Hugh Lindley)
Subject: CopyFIle XCMD
Summary: I need an XCMD to copy files that works with a RAMDISK
Keywords: XCMD, Copying Files
Organization: Carleton University
Date: Tue, 18 Aug 1992 20:58:06 GMT

I just downloaded Jon Pugh's Hypercard stack & external 
command CopyFile from FTP.APPLE.COM It seems to work 
well with files that exist on different volumes. For 
example from disk to hard drive or from network server 
to local hard drive. I'm having problems with getting it 
work between folders on a local hard drive and getting 
it to recognize a RAM Disk as file volume. When I use 
the plain copyfile command from the message box and use 
copyfile's built in SFdialog I can see the RAM disk as 
another volume and the command appears to execute, but 
when I check the contents of the RAM disk, the file does 
not appear to be copied. Does anyone know of any 
Hypercard externals that can copy to the RAM disk, and 
if so where can I find them. 

P.S. I have tried copying to Apple's Proprietary RAM 
Disk that comes with system 7.0.1 and shareware RAM Disk 
applications like AppDisk. 

Thanks in advance your advice, experiences, or input.

Hugh_Lindley@Carleton.ca

Newsgroups: comp.sys.mac.hypercard
From: boserj@netcom.com (Jeffrey Boser)
Subject: Re: How magic is the CompileIt?
Date: Sun, 16 Aug 92 05:53:23 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

sharvy@reed.edu (V Headshape) writes:
> I thought HC 2.0 compiled scripts on its first execution of them and
>stashed them in RAM, so why would compileIt be faster?  At least, why
>would it be 50 times faster?

Well, there are some problems here.  First off, Hypercard is
pretty funky when it comes to memory, and the compiled handlers
are all purgeable, so the first memory allocation wipes them.
so this means that they can only hang around for a little while,
and only one at a time.  So its not like its compiled and every
time thereafter you call it, it will be already compiled.

Now, me and a few associates hit this problem.  Get this..  what
if you want almost immediate response time from a handler, every
time you call it?  Well, got news for ya, loading the script,
finding the handler, extracting it, compiling it, all take time.
So, what we did was use compile the big handler into an xfcn,
then used ResEdit to mark it to load in when the stack was opened.
Resulting in very fast response, as hypercard only had to figure
out the calling script and go to teh xfcn.  This was a big deal
in that this handler reacted to mouse-presses, and a long delay
before the reaction happened was unacceptable (We got a thousand
percent improvement in speed...  making what it acceptable).

Also, depending on *how* your compiled xfcn handles data, there can
be another improvement.  Your xfcn may take advantage of FPU, or
streamline some functions like assignment and arithmetic...  hypercard
is pretty generic, and hence pretty slow in the specific.

And..  when it comes right down to it..  if you want response,
hard code the bugger...

....jeff
From: iron@imag.fr (Francois Menneteau)
Newsgroups: comp.sys.mac.hypercard
Subject: Duplicating Stack...
Date: 21 Aug 92 09:08:51 GMT
Organization: IMAG Institute, University of Grenoble, France


Problem:
I am in a stack, I know the name of a target stack I want to create, and I
want to duplicate the stack I am in, but without bringing the dialog box of
the "Make a copy..." menu item (since I know the target stack name).

Question:
Is this possible?
-- 
Francois Menneteau ()   __|||||__   () "... I had their lives in my hands
================== ()    /O   O\    () their fate their fortune in my visions
iron@imag.fr       ()    - .|. -    () No one believed in my true prophecy
================== ()     \=^=/     () And now it's too late."  (Iron Maiden)
From: poswig@jupiter.informatik.uni-dortmund.de (joerg Poswig)
Newsgroups: comp.sys.mac.hypercard
Subject: Pasting Quicktime movies into Hypercard?
Date: 14 Aug 1992 12:32:38 GMT
Organization: University of Dortmund, Germany
Distribution: world
NNTP-Posting-Host: jupiter

Does anybody know how to paste Quicktime movies into Hypercard?

Does Hypercard 2.1 support Quicktime? Which additional files
are requested for the system folder if system 6.0.7 or system 7.0 are
installed?

Any hints are very appreciated. Thanks in advance.

Joerg



Joerg Poswig
Universitaet Dortmund - Lehrstuhl Informatik 1
Otto-Hahn-Strasse 16, Raum 202
4600 Dortmund 50

phone ++49/231/755 6414
fax  ++49/231/755 6555

email  poswig@jupiter.informatik.uni-dortmund.de
From: lambert@cwi.nl (Lambert Meertens)
Newsgroups: comp.sys.mac.hypercard
Subject: Three HyperTalk questions
Date: 20 Aug 92 21:49:04 GMT
Reply-To: lambert@cwi.nl (Lambert Meertens)
Organization: CWI, Amsterdam

(Question 1)  I have noticed that it is rather easy to destroy data in the
fields of a card (unintentionally) beyond the capabilities of repair of
Undo.  [A typical scenario is that while tabbing through the fields my pink
slips on a printing key.]  Therefore I want to make some button "Undo all
changes to this card".  The obvious way is to squirrel away a copy of the
card when it is opened.  Now the real question:  Is there a SIMPLE way to
save/restore a copy of a card, simpler than a programmed loop through all
fields?  I can't find such a simple way, but this seems such a basic thing
to me that I imagine I'm overlooking something.  N.B.:  I can't use `doMenu
"CopyCard"' since that interferes with normal user editing.

(Question 2)  On openCard and closeCard my scripts do some moderately time-
consuming things.  Actually they only have to be performed on cards that
will become or were visible.  Sometimes navigation is going on behind the
scenes while the screen is locked, and then these activities could be
skipped.  Is there some SIMPLE way to find out in a script if the current
card was/is/will become visible?

(Question 3)  When I use `send tabkey' from a script to a newly displayed
card, it takes ALMOST TWO SECONDS on my MacPlus before its first field is
highlighted, after the new card has already been displayed.  This seems
excessive to me.  Does this sound familiar?  Any clue?  (I'm not catching
any events related to fields or keys.)

-- 

--Lambert Meertens, CWI, Amsterdam; lambert@cwi.nl
Newsgroups: comp.sys.mac.hypercard
From: aa335@cleveland.Freenet.Edu (William Beasley)
Subject: Recover stack with end of file marker missing?
Reply-To: aa335@cleveland.Freenet.Edu (William Beasley)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Wed, 12 Aug 92 19:02:40 GMT


I'm trying to salvage a stack with a missing end--of-file marker.

Can anyone:
a) point me to a utility which exists to replace such markers? If
so, where can I get it (ftp preferable)?
b) point me to info on how to manually recognize and replace 
such a marker, assuming access to a sector editor?

email, please. Thanks.

WmB.
Newsgroups: comp.sys.mac.hypercard
From: cwalton@engin.umich.edu (Christopher A Walton)
Subject: Recording Audio with HC
Date: Fri, 14 Aug 92 12:59:14 EDT
Organization: University of Michigan Engineering, Ann Arbor

I would like to find out about anyone's experience with
using digitized voice in a HyperCard stack.  We have a stack
that uses prerecorded digitized voice (recorded with the
Audio Palette), but are now interested in recording audio
comments from our users. 

Instead of being overwhelmed by the audio palette we want
our users to have access to three simple buttons: Record,
Play, and Erase.  We are not as satisfied with the sound
quality or bulky hardware of the MacRecorder and HyperSound
toolkit  (that come together from MacroMedia) that seems to
be the only publicly available XCMDs and XFCNs for working
with sound in a HC document.  

Any information or pointers would be greatly appreciated.

Chris Walton
Newsgroups: comp.sys.mac.hypercard
From: hpoppe@ncar.ucar.edu (Herb Poppe)
Subject: Validating Data Entry in a Field
Organization: National Center for Atmospheric Research
Date: Tue, 18 Aug 1992 20:28:25 GMT

I need to ensure that a user correctly enters data into a field. I want 
the selection point to remain in the field until a correct value is 
entered. HyperTalk allows me to trap user attempts to "esacpe" the field 
by typing TAB or RETURN or ENTER. However, I see no convenient way to trap 
the user's clicking a button, in another field, or in the card, thus 
leaving an invalid value left in the field. Have a missed an obvious (or 
not so obvious) approach to this issue?

Herb Poppe                 National Center for Atmospheric Research (NCAR)
hpoppe@ncar.ucar.edu       1850 Table Mesa Dr.
(303) 497-1296             Boulder, CO  80303
From: okamoto@hpcc01.corp.hp.com (Jeff Okamoto)
Date: Sat, 22 Aug 1992 01:17:36 GMT
Subject: JPEG decompressor XCMD wanted
Organization: An-Pan Man Headquarters
Newsgroups: comp.sys.mac.hypercard

Does anyone know if there is a XCMD that decompresses JPEG images?
I have a very PICT-heavy stack that I hope will become smaller if
the PICTs are JPEGs instead.
-- 
 \      oo	The New Number Who,
  \____|\mm	Jeff Okamoto
  //_//\ \_\	HP Corporate Computing & Services
 /K-9/  \/_/	okamoto@ranma.corp.hp.com
/___/_____\	
-----------	(415) 857-6236
From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
Newsgroups: comp.sys.mac.hypercard
Subject: SuperCard XCMDs for QuickTime
Date: 22 Aug 92 15:36:09 GMT
Reply-To: sw@network-analysis-ltd.co.uk
Organization: Network Analysis Ltd
X-Mailer: uAccess - Macintosh Release: 1.6v1

I'm sorry if this is an FAQ, but I don't have time to follow this
newsgroup. Anyway, someone without access to the net has asked me if I knew
of any QT movie-playing XCMDs that work with SuperCard. Apparently the one
that comes with the QT CD doesn't work "properly" with SC (sorry, I don't
have details, but something to do with SC not supporting XWindows). If
anyone knows of such XCMDs - I have access to FTP -, or has a fix for using
the HC XCMDs, please send me email; I will summarize on the net if there is
interest.

Thanks in advance

Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK

uucp:      ...!uknet!nan!sw  Phone: (+44) 203 419996
AppleLink: NAN.LTD           Internet: sw@network-analysis-ltd.co.uk
From: bhostetl@silver.ucs.indiana.edu (Brian Hostetler)
Newsgroups: comp.sys.mac.hypercard
Subject: copy/pasting a card--question...
Date: 21 Aug 92 00:19:19 GMT
Distribution: comp.sys.mac.hypercard
Organization: Indiana University


	Here is a little script:
on AddCard
  doMenu Copy Card
  doMenu Paste Card
  ask "Please enter the strain name for this card."
  put it into Card Name:
end AddCard

	Does anyone know how to get hypercard to copy a specific card from
anywhere else in the stack?  That is, when a user clicks on the AddCard
button, I would like the stack to copy a template card located
elsewhere and place it where the user is.  I guess a round-about way
of doing it would be for hypercard to take the user *to* the template
card and copy it and then ask the user to go to where they want it to
be and then paste it, but...
	Also, the 'put it into Card Name:' obviously does not work.
What qualifier am I missing???
-- 
-brian
*bhostetl@ucs.indiana.edu 	  |	"Stop and breathe, close my eyes
 bhostetl@iubacs.bitnet   	  | and smell and listen...  no more cotton
 bhostetl@silver.ucs.indiana.edu  | candy, no more band concerts..."
Newsgroups: comp.sys.mac.hypercard
From: burchil@ccu.umanitoba.ca (Charles Andrew Burchill)
Subject: Size of script, 32000 characters.
Summary: Size of Hypercard 2.1 script
Keywords: hyercard script
Organization: University of Manitoba, Winnipeg, Canada
Date: Sat, 22 Aug 1992 19:44:48 GMT

I would like to know what is the max size of a hypercard script in
characters and lines.
I have been working on a stack with a huge stack script.  Most of the
script has to be in the stack or background level, but I also have 
put a lot of script for buttons and fields in as well - it saves me from
hunting all over the place, and I also know where everything is when I am
editing.

Today I ran into the size limit of the stack script.  Every time I try to
add anything the computer beeps back at me.  I can delete some characters
and add the same number back, save, give HC more memory always the same
result.

Here are the stats of the script
Characters: 30000
Words: 4874
Sentences: 593
Paragraphs: 528
(is it ever nice to have an editor that does those counts :-))

Q.  Am I at the limit?  I thought it was 32000.
If I am at the limit I guess I will have to move the script for some of the
buttons back out to the button script, and dump some of my comments.  The
script has a ton-o-comments incase anyone elese wants to edit the script.

OH BTW the stack is a Mac version of that very usefull utility
Hytelnet for the PC by Peter Scott.  Mail me if you are interested.
<burchil@ccu.umanitoba.ca>
-- 
Charles A. Burchill <burchil@ccu.umanitoba.ca>
University of Manitoba, Winnipeg, Manitoba, Canada
    ,__o
  _-\_<,   Cyclist
From: bengtb@stacken.kth.se (Bengt Baverman)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Validating Data Entry in a Field
Date: 19 Aug 92 09:41:51 GMT
Organization: Stacken Computer Club, Stockholm, Sweden


I think the best way to handle this in Hypercard is to do what the "Valid
Entry Package" does [this can be found on Apple's Developer CDs]: It assumes
that the original value in a field is valid and saves this at openField time.
When the user exits from the field, generating a closeField, the validity of
the current value is checked. If the value is not valid it is replaced with 
the old, valid, value and the user is alerted.

Check out the Valid Entry Package if you have access to it. It is very well
written by Chris Thorman, Apple Computer, Inc.

Bengt Baverman
bengtb@alex.stacken.kth.se
-- 
Bengt Baverman
bengtb@alex.stacken.kth.se
From: lac@ecs.soton.ac.uk (Les Carr)
Newsgroups: comp.sys.mac.hypercard
Subject: MacTCP HyperCard Toolkit bug
Date: 13 Aug 92 11:12:41 GMT

Help: the TCPRecvChars(connID,n) function wipes out any
characters past the first return! This didn't used to be a
problem when I was using it to interface to a line-oriented
data-stream, but now I'm trying to pretend to be telnet to
a screen-oriented application which generates lots of lines
with return in the middle!

Are there any fixes? As far as I can see the source that
accompanies the toolkit doesn't mess around with the data.
Any advice? (I'm working around by using TCPRecvUpTo())
-- 
L.Carr@ecs.soton.ac.uk               Les Carr
Tel: +44 703 593649                  Dept of Electronics and Computer Science
Fax: +44 703 593045                  University of Southampton SO9 5NH England
From: stephen@csd.uu.se (Stephen Cooper)
Newsgroups: comp.sys.mac.hypercard
Subject: Setting time-out for Apple Events in SuperCard
Date: 12 Aug 92 14:15:02 GMT
Organization: Uppsala University
X-Useragent: Nuntius v1.1a2

Hi!
  Anyone out there know how to set the time out for apple event messages
sent from SuperCard?
  I know it can be done in HC 2.1, but I need the animation ablities of
SC.

Thanks,
  Stephen
-----------------------------------------------------------
Stephen Cooper  	       	       	+46-(0)18-18 10 73 (voice)
Computing Science Dept  	       	+46-(0)18-52 12 70 (fax) 
Uppsala University, Sweden      	stephen@csd.uu.se
Newsgroups: comp.sys.mac.hypercard
From: rmiller@menudo.uh.edu (Robert W. Mudge Miller)
Subject: request for HyperXCmd.h and XCmdGlue.c
Organization: University of Houston
Date: Mon, 17 Aug 1992 18:08:00 GMT

Would someone who has the right stuff be kind enough to post 
(or mail directly) HyperXCmd.h and XCmdGlue.c for 2.x Hypercard? 
The ones I have are pre-2.0 and almost useless at this point. If
you have the ones that are for ThinkC that would be particularly
wonderful.

I'll mail you a postcard for your troubles...

Muchas Gracias

Robert Miller

rmiller@uh.edu / College of Education / Univ of Houston
Newsgroups: comp.sys.mac.hypercard
From: sumner@math.scarolina.edu (David Sumner)
Subject: External Commands in 4th Dimension
Organization: USC  Department of Computer Science
Date: 11 Aug 92 13:59:47 GMT


Does anyone know if 4th Dimension supports
any kind of external command structure - like that 
of Hypercard? I'd like to add a 'play' command to 4th
dimension if possible, and that seems like a natural
way to do so. Any information would be appreciated.
 
Thanks,
David Sumner
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer
From: wkt@rodos1.cs.adfa.oz.au (Warren Toomey)
Subject: Reports in HyperCard 2.1 -- Help wanted
Organization: Australian Defence Force Academy, Canberra, Australia
Date: Fri, 21 Aug 1992 06:48:22 GMT


I am including a HyperCard question from a friend here who does not have
Internet access. He'd very much appreciate any help he can get. Replies
to me via email (wkt@csadfa.cs.adfa.oz.au). I know nothing about HyperCard.

	Warren Toomey
----------

I have a slightly complicated problem with HyperCard 2.1 reports.
It goes like this:

a.	A long list of text lines is stored in several fields
	(ie. > 30000 chars - hence > 1 field).

b.	There are two separate entities associated with each of
	these text lines.

c.	I want to put all of the text into a report field and keep
	the related entities on corresponding lines of two other
	fields (each line of the text may take more than one line
	on the report field).

So far I have tried putting the text lines into a single variable but
lose at least half of it (always at the same point) - is this a
limit on the variable or a memory problem?

I have also tried putting each separate card field into a separate
variable and concatenating them when I return from the user-defined
function - but same problem arises.

To try to line up the entries on corresponding lines, I use a
mono-spaced font like Courier and try to match the width of the
field (by counting characters in full lines) - but not really successfully.
Is there a way of finding out what the field width is, or of predicting
(accurately) how many physical lines in the report field each of the
text lines will take up?   I have tried to emulate the word-wrap routine
but cannot get it quite right - futhermore it takes an absolute AGE...
(ie. up 7.5 hours on a Classic for 435 text lines etc).

Is there anyone out there who knows of a PD, shareware or commercial
product which will allow me to handle this type of report in a
reasonably simple and efficient way.   I have heard of "Reports"
(by Q&A Software?) but dont know anyone who has it or has used it.
Since I do not fancy the idea of paying for a product which may not
come close to what I want, I would appreciate any information
or suggestions which you may be able to give me.

	Andy Haddock.
------


  Warren Toomey VK1XWT, on the path to insanity
  No longer in the bowels of ADFA Comp Science.
   `Version 7 Job Control: just use ptrace(2).'
From: KGODDEN@cmsa.gmr.com
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Adding version: to a stack
Date: 13 Aug 92 16:01:25 GMT
Organization: GM Research Labs

In article <jpugh-120892175253@90.20.3.213>
jpugh@apple.com (Jon Pugh) writes:
>In article <16841EC9E.KGODDEN@cmsa.gmr.com>, KGODDEN@cmsa.gmr.com wrote:
>>
>> What's the magic incantation needed to change the Version: n/a
>> in a stack's Get Info box to the version of my choice.  I have just been
>> monkeying around with ResEdit, added a vers resource, put in the info I
>> wanted, and still nothing shows up on my Get Info box.  I even opened
>> a stack (FTP) that DOES have a version, copied its vers resource into
>> my own stack, and STILL nothing shows up.
>> What gives?
>
>I bet you are suffering from the Finder's cache.  If you look at the Get
>Info
>and then change it, it won't change until you close and reopen the window.
>Check again.  I bet it has changed.
>
Well, yesterday I did close the window and look again several times, but still
no satisfactory results.  Today, however, I got it to work.  Here's what I
*think* happened:  yesterday I wrote in the comments field before creating
the vers resource.  Today I did the opposite.  My guess is that as soon as
I modified something in the Get Info box, it prevents the resource from doing
its job.  After I got it to work, I tried to modify the resource and sure
enough, the revisions did not display.  I had to start over with a fresh copy.
I received a personal note from one of you today telling me to rebuild the
desktop in order to see the changes.  I didn't try that one.
-Kurt
-------------
"I distrust a research person who is always obviously busy on a task."
-Robert A. Frosch, VP, GM Research