HDTenEightyP/NetNews huggingface dataset:
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Word 5.1 & AppleEvents
Date: 18 Nov 92 17:11:25 +1300
Followup-To: comp.sys.mac.hypercard
Organization: University of Waikato, Hamilton, New Zealand

In article <jpugh-171192132944@wolverine.apple.com>, jpugh@apple.com (Jon Pugh) writes:
> In article <shebs-171192100253@delos.apple.com>, shebs@apple.com (Stan
> Shebs) wrote:
>>
[comments about the difficulty of supporting AppleEvents omitted]
>
> I agree with a lot of this, but in addition I would like to point out that
> a lot of the design decisions were made for compatibility reasons.
> AppleScript would like to be a full OOP language, but it has to be
> implemented in non-OOP programs.

Why? AppleScript is a language in its own right, right? So how would you
embed AppleScript code inside programs written in other languages? It seems
to me the natural way would be to store AppleScript sequences (possibly in some
"tokenized" or other such "pseudocompiled" form) in resources or suchlike.
So why should that have any interaction with the language that the rest of the
program is written in?

> That makes it very tough to hide the implementation details.

You don't have to be OOPish (OOPful?) to support data abstraction. Try Modula-2.

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
Newsgroups: comp.sys.mac.hypercard
From: Eric C. Kofoid <kofoid@bioscience.utah.edu>
Subject: Re: Protecting a Text field
X-Xxdate: Mon, 23 Nov 92 21:08:46 GMT
Organization: Dept. Biology, University of Utah
X-Useragent: Nuntius v1.1.1d7
Date: Mon, 23 Nov 92 21:17:08 GMT

In article <1992Nov20.000530.21486@tjhsst.vak12ed.edu> William Booz,
bbooz@tjhsst.vak12ed.edu writes:
>I have a stack with a main text field containing information
>from card to card.  I would like to keep the field locked so
>it's contents aren't accidentally - or on purpose - changed,
>but I also want browsers to be able to select blocks of text
>they want within a given field, copy it and then paste the
>selection into a collection "notepad" field I have on a Note
>Pad card in the stack.
>
>I have created this handler and it works:
>
>    on idle
>     if the optionKey is down then
>      set the lockText of bg fld id 9 to false
>     else
>      set the lockText of bg fld id 9 to true
>     end if
>    end idle
>
>I remember some discussion here some time ago that one should
>avoid "on idle" handlers if possible.  I have tried "on
>mouseStillDown" and some other variations but they don't work.
>
>Question: what am I missing?  Is there a more elegant solution
>to my problem?
>
>Thanks in advance for any help.
>-- 
>            _______________    __o        Bill Booz, Fairfax, VA
>        _________________     -\<,       bbooz@tjhsst.vak12ed.edu
>                        ......O/ O            Biking Is Fun!!

Create your field, set the lockText to true and put the following
handlers 
into the field script: 

          on mouseDown
            set lockText of me to false
            click at the mouseLoc
            pass mouseDown
          end mouseDown

          on mouseStillDown
            global startDrag
            if startDrag = empty then put the mouseLoc into startDrag
            else drag from startDrag to the mouseLoc with shiftKey
            pass mouseStillDown
          end mouseStillDown

          on mouseUp
            finishDrag
            pass mouseUp
          end mouseUp

          on mouseLeave
            if the mouse = up then finishDrag
            pass mouseLeave
          end mouseLeave

          on finishDrag
            global startDrag
            set lockText of me to true
            put empty into startDrag
          end finishDrag

Works like a champ.

Cheers,

ooo Dr. Cancer ooo 

  "Being certain of the conclusion assists in finding the proof" 
                                      Galileo, 17th century
Newsgroups: comp.sys.mac.hypercard
Organization: University of Illinois at Chicago
Date: Saturday, 21 Nov 1992 10:56:25 CST
From: Theodore Stresen-Reuter <U42075@uicvm.uic.edu>
Newsgroups: comp.sys.mac.hypercard
Subject: Hide the desktop XCMD???

I was just wondering if anybody knew of an XCMD that can either hide the
desktop or (better yet) put a picture over it but under the active HC
card.  The reason this comes up is that sometimes I make MacroMind
Director documents with the screen size set to 12", but on occassion the
document is played on a 13" screen (or larger) and it would be nice to
cover up the desktop so as not to distract from the presentation.
Director is able to use HC XCMDs through a GLUE program.  Any
suggestions?

     Theodore Stresen-Reuter
     u42075@uicvm.cc.uic.edu
     Interactive design enthusiast and Spanish teacher
From: d1pihlan@dtek.chalmers.se (Fredrik Pihlstr|m)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Creating Two Indices
Date: 23 Nov 92 20:00:51 GMT
Organization: Chalmers University of Technology, Sweden


bbooz@tjhsst.vak12ed.edu (William Booz (Bill)) said:

[stuff about storing card id's alongside subjects in an index field]

>I don't like having that number visible to the user, however.

The solution I used to a similar problem was putting the card ID's
into a hidden field, in the "same" line as the subject. Then I used
the clickLine to get the right ID...

>In addition, I have thought that it would be ni not to repeat
>an author's name when there are several books by one author,
>but rather to have the index field recognize that there is more
>than one card with a book by the selected author and display
>(perhaps an otherwise hidden field...???) the list availab. A
>click on this field would take the user to the desired card.
>Any thoughts and/or suggestions?

What about this:
1 Sorting the index field by author (using some XCMD like Rinaldi's
   FullSort instead of the HyperCard 'slowsort').
2 Step through the list and,
     if the name of this author is the same as the previous then
         delete the name of the author on this line
     else
         put the author name before this line
         and, of course, insert an empty line in the hidden ID field

That would give an index looking something like this:
  Douglas Adams: 
  The Hitchhikers Guide To Galaxy
  So Long, And Thanks For The Fish
  J R R Tolkien:
  Lord Of The Rings
  ...... etc

Instead of an empty line in the ID field, you can insert the ID of a
card with some general information about the author. You can also set
the style of the lines containing author names to something different
than the book title's, thus making it easy to spot the authors.

If you separate the author name and the book title with a comma ','
life get's easier when separating author and book: just choose item 1
and 2. Well, if the author's name is represented in the form "Adams,
Douglas"? Oops, what about make it into "Adams. Douglas" or selecting
the two first items for author and put in a new comma when setting up
the author line...

Any comments from the more experienced HyperCarder's greatly
appreciated! Flamewars! Flamewars! Flamewars! 8-)

Anyway, hope I could give you some inspiration Bill.

> 
>-- 
>            _______________    __o        Bill Booz, Fairfax, VA
>        _________________     -\<,       bbooz@tjhsst.vak12ed.edu
>                        ......O/ O            Biking Is Fun!!

-mvh
Pihlan
--
----------------------------------------------------------------------
Fredrik Pihlstr|m                            d1pihlan@dtek.chalmers.se
Tel:+46 (0)31 265 479  Snail: L. Skogsv. 25, S-433 70 Partille, Sweden
   Computer Science & Engineering, Chalmers Un of Tech, Gothenburg
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Hide the desktop XCMD???
Date: 21 Nov 92 21:14:14 GMT
Followup-To: comp.sys.mac.hypercard
Organization: Apple Computer, Inc.

In article <92326.105626U42075@uicvm.uic.edu>, Theodore Stresen-Reuter
<U42075@uicvm.uic.edu> wrote:
> 
> I was just wondering if anybody knew of an XCMD that can either hide the
> desktop or (better yet) put a picture over it but under the active HC
> card.  The reason this comes up is that sometimes I make MacroMind
> Director documents with the screen size set to 12", but on occassion the
> document is played on a 13" screen (or larger) and it would be nice to
> cover up the desktop so as not to distract from the presentation.
> Director is able to use HC XCMDs through a GLUE program.  Any
> suggestions?

I saw an XCMD in some package (I forget which one) that put up a window
with the background pattern in it.  It wasn't freeware, so I can't post it
(I don't even have a copy).

However, the Picture XCMD can do the same thing with a picture.  You can
move the window behind the card with a "show card window" command before
making the picture window visible.

Of course, if you're going to do this in Director that might not be an
appropriate suggestion.

Jon
Newsgroups: comp.sys.mac.hypercard
From: nodine@whopper.lcs.mit.edu (Mark H. Nodine)
Subject: Re: pop-up menus
Organization: MIT Lab for Computer Science, Cambridge, Mass.
Date: Mon, 16 Nov 1992 16:16:49 GMT

In article <009638E9.69FE3040@vms.csd.mu.edu> 2db5schraba@vms.csd.mu.edu (Aaron Schrab) writes:
   Is there any way to do pop-up menus in hypercard, either with an XCMD or some
   fancy scripting?

There are several XFCNs that do pop-up menus.  IMO, the best one is the
FullHPopup that comes with the Rinaldi externals.  I recently looked at
the corresponding ones that come in the developer's stack and the
Dartmouth XCMD stack, but neither of these was flexible enough for my
application.  In particular, both of them assumed that you could have
zero or one items checked in the pop-up menu.  What I wanted was to
put up a menu that would allow you to add/subtract membership in a
number of lists by selecting the name of the list.  The check marks 
were used to indicate to which lists the card already belonged.

The Rinaldi version also supports hierarchical menus.

	--Mark
From: jcb@cogsci.ed.ac.uk (Jonathan Broadbent)
Newsgroups: comp.sys.mac.hypercard
Subject: Psychological experiments
Keywords: Psychology, hypercard
Date: 20 Nov 92 13:07:05 GMT
Organization: Centre for Cognitive Science, Edinburgh, UK

I've been asked by a psychologist friend to find out what (if any) use
hypercard has been put to in the experimental psychology field.
Specifically he would like to know about navigational tasks and
possibly also of timed tasks (self-paced or not). If you have any
references to papers that describe experiments run using hypercard, or
you know of any stacks that might be of interest to him, please mail me.

Thanks,

Jonathan Broadbent
Centre for Cognitive Science- Edinburgh University
jcb@cogsci.ed.ac.uk
From: gcl0@ns1.cc.lehigh.edu (GEORGE C. LIN)
Newsgroups: comp.sys.mac.hypercard
Subject: GETDISK XCMD
Date: 20 Nov 92 00:12:38 GMT
Organization: Lehigh University


Is there a loction where I can find the most recent version of GetDisk
xcmd or xfunc?  You pass it a string and it brings up a requester asking
for the disk with the string as the disk name if it (the disk) doesn't
exist as any of the mounted volume name.

Thanx.

GL
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Importing/accessing text files
Date: 17 Nov 92 16:24:11 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Nov16.203444.28004@netcom.com>, cinnibar@netcom.com (Jeff Wood) writes:
> In article <1992Nov16.155906.8559@jhunix.hcf.jhu.edu> crawford@jhunix.hcf.jhu.edu (James E Crawford) writes:
>>I am looking for a way to have HyperCard access text files between 100k and
>>300k in size. As I understand it, there is a 30k limit to the amount of text
>>which can be put into a field. Is there any way around this? or is there any
>>way to have HyperCard open the text file?
>>
>
> The 30K limit is not on the size of the file you can open, but rather on the
> amount of data  you may have in any one given container.

The limit is not on containers in general, it's only on text fields.

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
Newsgroups: comp.sys.mac.hypercard
From: jpugh@apple.com (Jon Pugh)
Subject: Re: clipboard XCMDs
Date: Tue, 17 Nov 1992 21:35:40 GMT
Organization: Apple Computer, Inc.
Followup-To: comp.sys.mac.hypercard

In article <cf255n200iV30_0kx_@andrew.cmu.edu>, ks3y+@andrew.cmu.edu
(Kenneth L. Simons) wrote:
> 
> Does anyone know of XCMDs to
>    get what's on the clipboard, and store it somewhere; then
>    restore the original contents to the clipboard

See my clipboard XCMDs on ftp.apple.com in /pub/pugh/hyperstuff

They will allow you to do all of this.

Jon
Newsgroups: comp.sys.mac.hypercard
From: bertsche@ravel.udel.edu (Steven Bertsche)
Subject: HyperHIT???
Organization: University of Delaware
Distribution: usa
Date: Fri, 20 Nov 1992 19:48:49 GMT

Is HyperHIT still available?  If so, could someone provide contact
information for the developer?
-- 
+-------------------------------------------------------------+
| Steven Bertsche             Instructional Technology Center |
| bertsche@brahms.udel.edu             University of Delaware |
+-------------------------------------------------------------+
Newsgroups: comp.sys.mac.hypercard
From: Martin Gannholm <gandalf@apple.com>
Subject: Re: Loosing font information when compacting stack - HELP!
X-Useragent: Nuntius v1.1.1d12
Date: Sun, 22 Nov 1992 01:21:05 GMT
X-Xxdate: Sat, 21 Nov 92 01:20:54 GMT
X-Xxmessage-Id: <A7342076810203EE@kip2-49.apple.com>
Organization: Apple Computer, Inc.

In article <FI28B9H@parrot.in-berlin.de> Albrecht Hofheinz,
majnun@parrot.in-berlin.de writes:
>This is weird: I have a stack whith lots of fields in it that are all
>set to a font derived from New York, with an ID around 500.
>All was well until yesterday. Now, when I compact the stack, all fields
>are set to Geneva. I have really no idea what could be the reason for
>this. When I don't compact, close and open again, the original font
>information is preserved.

Try holding down the command and option keys while compacting the stack. 
This will rebuild the internal font mapping tables and will fix it if 
it is corrupted (which it sounds like). Make sure you are running 
HyperCard 2.1--I don't remember which version I put that feature in.

A corrupted font table should only have occured with beta versions of 
HyperCard 2.0. Was your stack started with an old beta?

Martin Gannholm
Apple Computer, Inc.
Former HyperCard 2.x Guy
From: gcl0@ns1.cc.lehigh.edu (GEORGE C. LIN)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Expand/Collapse text in SuperCard 1.6
Date: 20 Nov 92 00:10:25 GMT
Organization: Lehigh University

In article <1992Nov19.153300.20492@spartan.ac.BrockU.CA>, mdenoo@spartan.ac.Broc
kU.CA (Marjorie Denoo) writes:
>I am working on a SuperCard application for my honours project. Being that I
>am new to the group I am not sure if this question has been asked or not but...
>
>
>       e.g.
>               1. chapter1
>               2. chapter2
>                       2.1. subitem1
>                       2.2. subitem2
>               3. chapter3
>               4. chapter4
>
>I was wondering if SuperCard had something that will do that (I only have
>access to outdated manuals) or will I have to write my own routine for this

One way I can think of is to make the text field a scrolling list, and you
can determine which line the user clicked on, and then insert the sub item
information AFTER the line they clicked on.  The sub item text can be stored
in a invisible field or somewhere else int he window/card list.

George
Newsgroups: comp.sys.mac.hypercard
From: Allen Winter <AWINTER1@agt.ab.ca>
Subject: Re: Personal Finances and Investments Manager Stack
X-Xxdate: Tue, 17 Nov 92 09:10:06 GMT
Organization: AGT Ltd
X-Useragent: Nuntius v1.1.1d9
Date: Tue, 17 Nov 92 16:16:50 GMT

In article <1dpcp0INNgq5@sdl.Warren.MENTORG.COM> Badri Lokanathan,
badri@Warren.MENTORG.COM writes:
>Badri_Lokanathan@Warren.MentorG.COM               Go ahead, flame away.

That sounds like an interesting stack.  Could someone also Email me
the author's name (or post it here).  Thanks.

Allen Winter;   
          AGT Ltd; R&D; Edmonton, Alberta
          AWINTER1@agt.ab.ca
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Why HyperCard
Date: 20 Nov 92 11:52:56 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Nov19.214400.12876@macc.wisc.edu>, demerit@vms.macc.wisc.edu (J. DeMerit) writes:
> If SuperCard does everything that HyperCard does and does it in color.  Then
> why are we using HyperCard???

I dunno, lots of reasons...one of which is that SuperCard *doesn't* do
everything that HyperCard does.

Or so I gather (not being a SuperCard user).

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
And in my heart I'm thinking, lub-dub, lub-dub, lub-dub...
Newsgroups: comp.sys.mac.hypercard
From: djk@sei.cmu.edu (David Kaplan)
Subject: XFCN/XCMD Help. . .
Followup-To: djk@sei.cmu.edu (David Kaplan)
Organization: The Software Engineering Institute
Date: Sat, 21 Nov 1992 21:07:00 GMT


----
Before eating your Turkey, any ideas?

We (a friend and I) are trying to do some higher level matrix mathematics in
Hypercard, but using the lines and words of fields to simulate a matrix is
tremendously slow.  Creating a Pascal program would be simple, and would
execute at a bearable rate.

So, what we'd like to do is pass several parameters (from fields and radio
buttons (hilite or not)) to a Pascal routine which, in turn, would do the
computations and return a matrix of values.  Some of the fields contain
numbers while others contain character strings, and what is returned will
consist of numbers and character strings as well.  The fields and buttons are
spread across different cards with different backgrounds.

Any help is appreciated.  Oh, we will be doing the Pascal programming in Think
Pascal.

Thanks for any help,

-Dave and Jason.


---------------------------------------------------------------------------
David J. Kaplan                                             djk@sei.cmu.edu
Software Engineering Institute                         dk3g+@andrew.cmu.edu
Carnegie Mellon University                                   (412) 268-7736
From: ks3y+@andrew.cmu.edu (Kenneth L. Simons)
Newsgroups: comp.sys.mac.hypercard
Subject: clipboard XCMDs
Date: 16 Nov 92 15:57:07 GMT
Article-I.D.: andrew.cf255n200iV30_0kx_
Organization: Doctoral student, Social & Decision Sciences, Carnegie Mellon, Pittsburgh, PA

Does anyone know of XCMDs to
   get what's on the clipboard, and store it somewhere; then
   restore the original contents to the clipboard

The reason I need this is, I need to save whatever's on the clipboard,
while I use the clipboard to paste an image (from HyperGraph) into a
HyperCard stack.

Thanks!

- Ken
Newsgroups: comp.sys.mac.hypercard
From: nodine@lcs.mit.edu (Mark H. Nodine)
Subject: Re: Constant bg fld
Organization: MIT Laboratory for Computer Science
Distribution: usa
Date: Thu, 19 Nov 1992 20:51:39 GMT

In article <1992Nov13.150422.13054@walter.bellcore.com>, cheri@decoy.cc.bellcore.com writes:
|> Hi,
|> 
|> Is there any way for the *contents* of a background field to be shared across
|> cards?  I'm currently copying the contents into the fld every time I open a
|> card, but that's a pain!
|> 
|> To be more specific about my problem, I have a scrolling list of categories
|> (which is a bg fld) to which users can add.  The list of all categories must be
|> displayed on each card.  I'm running SuperCard 1.6 (if that's relevant).

There is a "SharedText" property for background fields. 
Unfortunately, the field can only be edited if you are in
background mode.  However, you could provide some kind of
interface to add/subtract from it (e.g., buttons "Add
Category" and "Remove Category").

	--Mark

Newsgroups: comp.sys.mac.hypercard
From: vadim@CS.Stanford.EDU (Vadim Akselrod)
Subject: Re: Protecting a Text field
Reply-To: vadim@cs.stanford.edu
Organization: Computer Science Department, Stanford University.
Date: Fri, 20 Nov 1992 18:24:25 GMT

>I have a stack with a main text field containing information
>from card to card.  I would like to keep the field locked so
>it's contents aren't accidentally - or on purpose - changed,
>but I also want browsers to be able to select blocks of text
>they want within a given field, copy it and then paste the
>selection into a collection "notepad" field I have on a Note
>Pad card in the stack.
>
>I have created this handler and it works:
>
>    on idle
>     if the optionKey is down then
>      set the lockText of bg fld id 9 to false
>     else
>      set the lockText of bg fld id 9 to true
>     end if
>    end idle
>
>I remember some discussion here some time ago that one should
>avoid "on idle" handlers if possible.  I have tried "on
>mouseStillDown" and some other variations but they don't work.

Well, you might want to protect just the contents of the field.
The way I like to do that is:

1. Save the contents of the field in a global on openField
2. Compare contents of the field to the global on closeField &
      restore the contents to the global if required

If the users realize (by the stack context) that they should not
change the field, they will not be confused if the field restores
itself.  But they can select pieces, copy them, etc...

Cheers,	
	-Vadim

+---------------------+---------------------+---------------+---------------+
|Vadim "Josh" Akselrod|vadim@cs.stanford.edu|W:(415)725-6969|H:(408)732-4606|
|MS Student, Comp. Sci+---------------------+---------------+---------------+
| Stanford University |  If my opinions were worth anything, I'd sell them  |
+---------------------+-----------------------------------------------------+
Newsgroups: comp.sys.mac.hypercard
Distribution: world
From: Dajuin_J._Yao@bmug.org
Organization: BMUG, Inc.
Date: Fri, 20 Nov 1992 16:38:28 PST
Subject: Re: Loading CLUTs in HC

Look at a XCMD stack called "Palette".  It might be what you need.
***************************************************************************
             From Planet BMUG, the FirstClass BBS of BMUG, Inc.
              The above message was gatewayed via PostalUnion
***************************************************************************
The message contained in this posting is entirely the poster's personal
opinion.  Any possible, real or perceived, (dis)similarities with the
views held by BMUG, are purely coincidental.
***************************************************************************
From: Daniel.J.Blumenfeld@dartmouth.edu (Daniel J. Blumenfeld)
Newsgroups: comp.sys.mac.hypercard
Subject: Hypercard Stacks of Bears...
Date: 15 Nov 92 19:07:48 GMT
Organization: Dartmouth College, Hanover, NH
X-Posted-From: InterNews1.0a5@newshost.dartmouth.edu


I'm looking for any PD / Shareware hypercard stacks which contain
good images, line drawings, and factoids about bears.  Clip art
drawings, etc. would also be useful.

- djb
Newsgroups: comp.sys.mac.hypercard