HDTenEightyP/NetNews huggingface dataset:
From: Jim.Williams@macnet.omahug.org (Jim Williams)
Newsgroups: comp.sys.mac.hypercard
Subject: Speeding up a search/replace/sort routine
Date: 12 Apr 92 11:30:49 CST
Reply-To: jim.williams@macnet.omahug.org
Organization: Macnet Omaha
Followup-To: comp.sys.mac.hypercard

(To: jbnash@vms.macc.wisc.edu)
(Organization:  University of Wisconsin Academic Computing Center)

J.B. Nash at the University of Wisconsin Academic Computing Center asks:
 
 <>> I have a script here that turns the words of a field into a list of words
 <>> and then sorts them alphabetically.  Problem is this script has to look
at
 <>> every character of every word, so fields with a lot of text take many 
 <>> minutes to sort. 
 <>> Is there a better way to have it look at each word instead of each
 <>> character? (or some other faster solution?)

I don't know whether this will run any faster, but how about the following:
(text to be sorted goes into sourceField; sorted text appears in destField)

  set cursor to busy
  put empty into field destField
  repeat with i=1 to the number of words in field sourceField
    put word i of field sourceField & return after field destField
  end repeat
  sort lines of field destField

I don't know how your script performs, but this one sorted the first page of
"Jeeves Takes Charge" (230 words) in about 70 seconds on a Mac Classic. Using
the "sort lines" command should be a bit quicker than sorting character by character,
and it's much easier to script! Good luck...

I can't send Internet mail directly, so if anyone thinks this will help J.B.,
please see that it gets to him. Thanks!
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: CLUT manipulation & multiple monitors
Date: 15 Apr 92 23:34:25 GMT
Organization: Apple Co.

Here's a dumb idea:

Create a BIG window that covers both screens (image is black). Put your 
pictures up BEHIND it on both screens.  Hide the big window.

I think you will still get in trouble since I think each monitor will refresh
individually.  Your CLUT plan is probably better.

Jon
From: dlugose@hatteras.cs.unc.edu (Dan Dlugose)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Help Me, Please!!!
Date: 8 Apr 92 13:17:24 GMT
Organization: University of North Carolina, Chapel Hill

In article <1992Apr4.015127.3242@casbah.acns.nwu.edu> mhauser@robbie.acns.nwu.edu (Marc Hauser) writes:
>
>I have a Classic, with v2.02 or something like that of Hypercard.  Well,  

You really have version 2.1, right?  Do a get info.

>when I run the program, either directly or from a clicking a stack, I get  
>into the program, but I am unable to do anything.  The menu bar at the top  
>is functional, but I cannot click on buttons, etc...  I think a problem is  
>that, on the screen is the pointer cursor, not any type of finger-style  
>pointer(I may be wrong).  
> 
>Anyway, I reinstalled it, and that did nothing.  I put in the new version  
>that came with system 7(although I am still running 6.07), and that did  
>not work.  Neither did a friend's copy of Hypercard.  Also, I tried it out  
>on a friend's computer, with the same set-up, and his Hypercard  
>experiences the same exact problems.
>
Check the following:
   Reinstall a fresh Home stack from HyperCard distribution disks.
   Can you select the "finger" tool (browse tool)?
   If not, try (from the Home stack, preferably, Command period to interrupt
any script that is running.  Then select the browse tool.
   If you can get out the message window (command M or Go menu), type 
"choose browse tool".
   In message window, type "set userlevel to 5", then immediately either
from the objects menu choose stack, then click on script, or type "edit the
script of this stack".  Use Command F in the script editor to look for
any script that may be altering "tool" or "cursor."     

   Of these suggestions, do the most ordinary first - HC version, and fresh
home stack.
   (There are such things as HC viruses, or scripts which may make your
HyperCard life miserable, but they are pretty rare.)

Dan Dlugose
From: rc05@gte.com (Ramesh Chandak)
Newsgroups: comp.sys.mac.hypercard
Subject: Differences in HyperCard 1.2.5, 1.5, 2.0 and 2.1
Date: 7 Apr 92 15:32:47 GMT
Organization: GTE Laboratories Incorporated, Waltham MA

does anyone have a list of what are the differences in these versions
of HyperCard ?

please email your responses to Ramesh at rc05@gte.com.  Thanx.
Newsgroups: comp.sys.mac.hypercard
From: kknudsen@grumpy.helios.nd.edu (keith knudsen)
Subject: Sinc's
Organization: University of Notre Dame, Notre Dame
Distribution: na
Date: Tue, 14 Apr 1992 21:18:45 GMT

What are SINC's and how do you use them?  I have a XCMD called "Menu"
by Rinadi, and I don't know how to use it effectively.  You can define
SINC's and ICON's, but I don't know what a SINC is.  

Any help?

Keith
.
From: science@oasys.dt.navy.mil (Zimmermann)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Speeding up a search/replace/sort routine
Date: 13 Apr 92 14:01:25 GMT
Organization: Carderock Division, Naval Surface Warfare Center
X-Organization: (formerly David Taylor Research Center)


if you have a lot of text to sort and want to generate word lists,
alphabetized, with word counts, pointers to every word, etc., you
might want to look at some of the XFCNs in my "Free Text" stack(s);
they build indices to arbitrarily-large text files at 15-20 MB/hour on
Mac II-like machines.  Probably for what you want this is massive
overkill, but you're of course welcome to look at and adapt the code
(all in THINK C) ... mostly quicksort, actually.... outside of HC,
there is a generic program I wrote, 'qndxr.c', which does the same
From: jkc@Apple.COM (John Kevin Calhoun)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: QuickTime in HC2.1
Date: 11 Apr 92 15:25:28 GMT
Organization: Apple Computer Inc., Cupertino, CA


In article <1992Apr11.041219.22695@syd.dit.CSIRO.AU> geo@syd.dit.CSIRO.AU
(George Bray) writes:
> In article <65109@apple.Apple.COM> jkc@Apple.COM (John Kevin Calhoun) writes:
> > Yes, the Picture XCMD can display QuickTime-compressed PICTs.  You don't
> > even need HC 2.1 for this -- if QuickTime is installed, this will work in
> > HC 2.0 and HC 2.0v2 as well.
>
> Hey, wow! How is this possible?  Is it all just handled by the OS and
> Quicktime, delivering a PICT to Picture?

Yes, it's all handled by the OS.  PICT files are collections of opcodes
and data.  When an application calls the QuickDraw routine DrawPicture,
QuickDraw interprets the opcodes and data and draws the picture according to
what it finds.  If you want to add something like "compressed data" opcodes
to PICTs, all you have to do is make DrawPicture smarter and it will be able
to uncompress the data and draw the images.

When System 4.x came out, the PICT standard was extended for color.
When 32-bit QuickDraw came out, the PICT standard was extended for greater
bit depths, new transfer modes, etc.  And QuickTime nudges the PICT
standard a little further along.

This is an oversimplified explanation, of course, but you can see why
Apple recommends that application developers never try to interpret PICT
data by themselves, without the help of DrawPicture.  Makes it harder to
add new stuff to PICTs later on.

Kevin Calhoun
jkc@apple.com
From: Chris.Innanen@f1138.n261.z1.fidonet.org (Chris Innanen)
Sender: Uucp@blkcat.UUCP
Newsgroups: comp.sys.mac.hypercard
Subject: RE-How to go home?
Date: Tue, 14 Apr 1992 01:30:35 -0500

The Home stack is chosen by name. If you rename the stack, it won't be used as
your real home anymore. Either rename the old home stack, or delete it.

                                                          -Chris

Newsgroups: comp.sys.mac.hypercard,comp.cog-eng,comp.human-factors
From: doug@clarity.Princeton.EDU (Douglas Merrill)
Subject: Re: Looking for Published Flowcharts
Originator: news@ernie.Princeton.EDU
Organization: Princeton University Cognitive Science Lab
Date: Thu, 9 Apr 1992 22:10:52 GMT

There was a paper in the _Proceedings of the fourth workshop on
Empirical Studies of Programmers_ that talked about the use of
diagrams and flowcharts as program documentation tools.  You might
check there to see if they have anything useful to say.

Doug Merrill
Cognitive Science Lab
Princeton University
doug@clarity.princeton.edu
Organization: Penn State University
Date: Thursday, 16 Apr 1992 19:10:38 EDT
From: <KCR103@psuvm.psu.edu>
Newsgroups: comp.sys.mac.hypercard
Subject: Color Hypercard

Does anyone know when Apple intends to release a color version of Hypercard?

Thanks for any info,

Ken Richardson
From: geirp@gandalf.uio.no (Geir Pedersen)
Newsgroups: comp.sys.mac.hypercard
Subject: SuperCard global statement
Date: 13 Apr 92 11:05:26 GMT
Organization: Computing Service, University of Oslo, Norway


According to the SuperCard documentation the argument for the global
statement can be a container which contains a series of variable
names. We read this as the variable names that is contained within the
container will be global. However, we can't make this work.

Here is a simplified example that we have tried:

on foo
  put "a, b, c" into globs
  global globs
end foo

When this script is executed SuperCard puts up a dialog with the error
message: There is already a local variable with that name.

We are running SuperCard 1.6.

Has anyone gottent this to work?

Thanks,

Geir Pedersen.
Newsgroups: comp.sys.mac.hypercard
From: geo@syd.dit.CSIRO.AU (George Bray)
Subject: Re: QuickTime in HC2.1
Organization: Sand Consulting, guest of CSIRO DIT
Date: Sat, 11 Apr 92 04:12:19 GMT

>Yes, the Picture XCMD can display QuickTime-compressed PICTs.  You don't
>even need HC 2.1 for this -- if QuickTime is installed, this will work in
>HC 2.0 and HC 2.0v2 as well.

Hey, wow! How is this possible?  Is it all just handled by the OS and
Quicktime, delivering a PICT to Picture?

>Kevin Calhoun
>jkc@apple.com

George Bray
Newsgroups: comp.sys.mac.hypercard
From: richwing@leland.Stanford.EDU (Rich Wingerter)
Subject: Re: Column Help
Organization: DSG, Stanford University, CA 94305, USA
Distribution: na
Date: Wed, 8 Apr 92 04:03:37 GMT

In article <1992Apr8.004003.10144@news.nd.edu>, kknudsen@sleepy.helios.nd.edu (keith knudsen) writes:
|> I am trying to display information in a field in nice neat columns.  
|> 
|> I am having difficulties in doing this, could use some help.

The big thing that throws this off is proportional spaced fonts.  You can use a
monospaced font, and use spaces to line things up, but most monospaced fonts
are ugly.  If possible, use more fields and line them up side-by-each.  You may
have to put code in the field script to compensate, but that is probably easier
than trying to line up proportional spaced type.


--Rich Wingerter

Newsgroups: comp.sys.mac.hypercard
From: Peter A. Cohen <peterco@eff.org>
Subject: Help a neophyte...please...
Organization: ON Technology, Inc.
X-Useragent: Nuntius v1.1a2
Date: Fri, 20 Mar 1992 23:39:28 GMT

Please direct me towards the best reference materials to read to learn
how to program in HC.  Thanks.

- Peter
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Finding screen location of text in HCard
From: clas005@csc.canterbury.ac.nz
Date: 16 Apr 92 13:49:27 +1200
Organization: University of Canterbury, Christchurch, New Zealand

In article <1992Apr14.135621.29610@magnus.acs.ohio-state.edu>, 
dasay@magnus.acs.ohio-state.edu (Devin N Asay) writes:

> I have been plagued with this question for months:
> 
> Is there a simple, accurate way to find the screen location, of a
> specific character in a HyperCard field?  For example, say I want my
> handler to find a specific word (no problem) then find a letter inside
> the word (still no problem), then draw a circle around that letter.
> Short of determining the font being used, going into ResEdit and
> finding the pixel width of each letter, then trying to count pixels
> from the edge of the field--a time-consuming and inaccurate exercise,
> at best--I have discovered no other solution.  This seems to be a
> major weakness in HyperCard (and every other Mac software authoring
> application I know of), especially for those of us doing language
> instruction courseware development.
 
Try getting the SelectedLoc. This provides the bottom left of the 
selected text; you will have to know the size of the letter, in 
order to draw your circle, but 
this should not be difficult to obtain.

You may have been plagued with this question for months, but you 
could have answered it in a moment with my HyperTalk Help DA, 
available on sumex. Matt N.

Newsgroups: comp.sys.mac.hypercard
From: EIVERSO@cms.cc.wayne.edu
Subject: Re: SuperCard global statement
Organization: Wayne State University, C&IT
Date: Tue, 14 Apr 1992 15:10:36 GMT

In article <GEIRP.92Apr13120526@gandalf.uio.no>
geirp@gandalf.uio.no (Geir Pedersen) writes:

>According to the SuperCard documentation the argument for the global
>statement can be a container which contains a series of variable
>names. We read this as the variable names that is contained within the
>container will be global. However, we can't make this work.
>
>Here is a simplified example that we have tried:
>
>on foo
>  put "a, b, c" into globs
>  global globs
>end foo

Try this:
on foo
  put "a, b, c" into globs
  do "global " & globs
end foo

Or you can always try this:
on foo
  global a, b, c
end foo


>When this script is executed SuperCard puts up a dialog with the error
>message: There is already a local variable with that name.
>
>We are running SuperCard 1.6.
>
>Has anyone gottent this to work?

I'm certain it will not work the way you wrote it.
>
>Thanks,
>
>Geir Pedersen.
>

--Eric
Newsgroups: comp.sys.mac.hypercard
From: dasay@magnus.acs.ohio-state.edu (Devin N Asay)
Subject: Finding screen location of text in HCard
Summary: How do I find the loc of a char? 
Keywords: HyperCard, location
Organization: The Ohio State University
Date: Tue, 14 Apr 1992 13:56:21 GMT

I have been plagued with this question for months:

Is there a simple, accurate way to find the screen location, of a
specific character in a HyperCard field?  For example, say I want my
handler to find a specific word (no problem) then find a letter inside
the word (still no problem), then draw a circle around that letter.
Short of determining the font being used, going into ResEdit and
finding the pixel width of each letter, then trying to count pixels
from the edge of the field--a time-consuming and inaccurate exercise,
at best--I have discovered no other solution.  This seems to be a
major weakness in HyperCard (and every other Mac software authoring
application I know of), especially for those of us doing language
instruction courseware development.

Anyone have any ideas?  Are there any XFCNs out there that return the
pixel position of a character given the location of the character is a
text string within a field?

Please post replies.  I'm interested to know who else has struggled
with this problem.

Devin Asay
Computer Based Instruction
Center for Teaching Excellence
Ohio State University
asay.1@osu.edu



Newsgroups: comp.sys.mac.hypercard
From: davids@c3.lanl.gov (David Simmons)
Subject: "Progress XCMD
Organization: Los Alamos National Laboratory
Date: Mon, 6 Apr 1992 17:50:02 GMT

I had an interesting experience with the "Progress" XCMD last
night, and I wonder if anyone can shed any light on it.  I was
trying to call it, and I got the every-popular bomb "Sorry, System
Error Occured"

I am running HC 2.1 on a IIci, System 7.0 (no tuneup)8MB RAM, 80 MB
HD.  INITS are limited to SAM 3.0, After Dark 2.x, SuperClock 3.9.

This error is reproduceable every time.  Oh, sorry, I did not 
get this error when running flat out, just when debugging.  As a 
matter of fact, it`s WORSE when I try to just run it.

It trashes my screen, and then freezes--no nothing.

Is there an update to Progress XCMD that I don't have?  Is this
a system 7 thing?

Any help appreciated.

-- 


David G. Simmons
davids@lanl.gov

************************************************************
*							   *
*	"Christ died for your sins...			   *
*        Make it worth his time!"			   * 
*							   *
************************************************************

"These opinoins are mine and mine alone, unless you'd like
me to share them with you.."
From: patnaik@hemlock.nrl.navy.mil (Gopal Patnaik)
Newsgroups: comp.sys.mac.hypercard
Subject: Reading serial port
Date: 16 Apr 92 13:52:21 GMT
Organization: Naval Research Laboratory

I would like to read data which appears on the serial port.  Currently I can
do this by calling an XCMD in an idle handler; however, I would much rather
have the incoming data cause an HC message to occur, rather than testing the
port periodically myself.  I am not afraid of modifying an existing XFCN,
but I dont know enough about mac programming to be able to write one from
scratch.  Any help will be appreciated.

Gopal Patnaik
patnaik@fozzie.nrl.navy.mil
Newsgroups: comp.sys.mac.hypercard
From: Martin B. Hill <chillm@cc.curtin.edu.au>
Subject: Re: Using Hypercard on a Mac PowerBook
Organization: Curtin Uni Computing Centre
X-Useragent: Nuntius v1.0
Date: Fri, 10 Apr 1992 13:58:50 GMT

G'day,
I use Danny Goodman's Connections Personal Information Manager on my
PowerBook 170.  You know, the usual sort of Diary/Calendar/To-Dos/Contact
Directory/Alarms/QuickNotes  etc.

I have it running all the time in the background.  Although it's a pain
about the amount of RAM taken up, 4MB and TuneUp 1.1 give me almost
enough for the other progs I run on it commonly.  (I'm waiting till PB
RAM comes down in price then it's 8MB for me...   :-)  )

The major problem with Hypercard and the PB is it accesses the disk too
much. Like most programs not specifically designed for the battery saving
features of the PB.  Hence, in the diary, whenever I want to view another
day (card): whoa, wait for the HD to spin up again, watch the battery
indicator dip, and then you're away...

Otherwise, Hypercard works as well as any other program.  Progs like
Nisus Compact or Word which allow loading the complete application into
RAM are the best performers on the PB tho'.

-Mart 

----------------------------------------------------------------------
Martin Hill            Internet:  chillm@cc.curtin.edu.au
Mac User Consultant    QuickMail: Martin_Hill@3512673
Computing Centre       AppleLink: AUST0176
Curtin University      GPO Box U 1987, 
Ph:(09)351-7461        Perth 6001,
Fax:(09)351-2673       Western Austalia
----------------------------------------------------------------------
From: David_Greg_Herlihy@cup.portal.com
Newsgroups: comp.sys.mac.hypercard
Subject: Spell Checker
Date: 6 Apr 92 03:32:26 GMT
Organization: The Portal System (TM)

Does anyone know of a spellchecker which could be incorporated into a
stack as a resource and used to check a particular field?  Maybe shareware?

Also, is there any way to "get" the contents of a field while retaining
information about style variances, so that the variable "it" could be
put in another fied (even a different font) and still retain words that
were originally in italic or bold?

I would appreciate any suggestions.  David
Newsgroups: comp.sys.mac.hypercard
From: bbooz@tjhsst.vak12ed.edu (William Booz (Bill))
Subject: Re: Help Me, Please!!!
Organization: Virginia's Public Education Network
Date: Sat, 11 Apr 92 14:57:45 GMT

HyperCard 2.x has two opaque buttons on the User Preferences
card (1st Home card, go previous) which hide the userlevel 3
through 5 buttons and the power keys and blind typing check
boxes.  After setting the userlevel to 5 from message window,
as previously suggested, choose the button tool, select the two
buttons just mentioned and delete them. 
-- 
            _______________    __o        Bill Booz, Fairfax, VA
        _________________     -\<,       BBOOZ@tjhsst.vak12ed.edu
                        ......O/ O            Biking Is Fun!!
Newsgroups: comp.sys.mac.hypercard
From: atau@ccrma.Stanford.edu (Atau Tanaka)
Subject: Re: audio input hooks
Reply-To: atau@ccrma.Stanford.edu
Organization: DSG, Stanford University
Date: Mon, 13 Apr 92 16:57:11 GMT

Bob Katz writes
> The HyperSound Tool Kit that comes with MacRecorder has an XFCN that may do
> some of what you want.  It's called the InputLevel XFCN.  It basically  
monitors
> the level of input to the modem or printer port of the Mac.  Here's a
> description of it taken from the Tool Kit:
> 
This looks great. Except that I need something to work with the built-in audio  
jacks of the newer Macs. And I need something I can access without having to  
buy MacRecorder...
--
           Atau Tanaka
	   Center for Computer Research in Music & Acoustics
	   (CCRMA)

	   atau@ccrma.stanford.edu
From: boomrang!dak@mips.com (David A. Kearney)
Newsgroups: comp.sys.mac.hypercard
Subject: problems using "Send"
Date: Wed, 15 Apr 92 10:07:39 PST
Organization: Boomerang Information Services
Reply-To: boomrang!dak@mips.com (David A. Kearney)
X-Mailer: uAccess - Macintosh Release: 1.5v4

Greetings,

I'm using HC 2.1 and I'm having a little trouble using the 
send command. I'd like to be able to say:

	send doTheWildThang to bg btn "Wild One" of bg "Wild Place" of
		stack "Wild"

And it doen't like it.  Is there a way to send messages to objects
in other stacks?

Thanx

Dave

----------------------------------------------------------
David A. Kearney, (415) 961-1597
Boomerang Information Services
=== It's so lonely on my saddle since my horse died... ===
From: erikro@jusit.uio.no (Rosaeg)
Newsgroups: comp.sys.mac.hypercard
Subject: What means error msg 160690?
Date: 14 Apr 92 09:07:19 GMT
Organization: Scand. Inst. Maritime Law, Oslo

RRunning a new HyperCard 2 script on a stack at a server, using System 7,
ssomething went wrong. I got an error message, and HC quit. When I try to open
 the stack again, I get the error message 160690 when the openStack and an
 on idle-script has stopped running, and hyperCard quits. This occurs only
 when the stack is unlocked, and even if lockMesages is set to false.

II am unable to figure out hat this error message means. Where can I look for
 the answer?

EErik Rosaeg
 erik.roseg@jus.uio.no
From: mike@pyrite.SOM.CWRU.Edu (Michael Kerner)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Howto Open Appleshare Vols in SC?
Keywords: supercard appleshare volume remote
Date: 9 Apr 92 14:40:22 GMT
Article-I.D.: usenet.1992Apr9.144022.29394
Organization: WSOM CSG, CWRU, Cleve. OH
X-Post-Machine: pyrite.som.cwru.edu

In article <1992Apr9.123738.3658@bnr.ca> dpenn@bnr.ca ( Dick Penn ) writes:
>I need to have a supercard script open an arbitrary volume in any zone on our
>large appletalk / ethernet WAN. I have a dirty trick for doing it which works
>in Hypercard, but Supercard won't do it. 
>    The dirty trick is to make a dummy stack with one card in it, and put it in
>the remote volume, then make an alias to it, and copy that into a folder on my
>own hard disk. If I then "go stack" with the full pathname of the alias,
>presto!, it opens the stack on the remote volume, mounting it along the way. I
>then return to the card I was on, closing the dummy stack, and the volume stays
>mounted.
>   Supercard asks me to locate the file, and puts up a SFdialog when I try the
>same trick. Understandable, but I need a way which doesn't involve user
>intervention. ( *pace* Apple purists -- I know our programs aren't supposed to
>open volumes without user intervention, but the customer is always right, and
>that's what they need to do.)
>
>   Id appreciate anyone's advice on this....
>                    Dick Penn, BNR -- but my opinions are my own


I don't know if it'll work in SC, but there are HC externals called
MOUNT and UNMOUNT which allow HC to do said things even across zones.
The version I have even works with System 7!

Mikey.
Mac Admin
WSOM CSG			/ TRW Inc.
CWRU				/ Corporate HQ
mike@pyrite.som.cwru.edu
Newsgroups: comp.sys.mac.hypercard