HDTenEightyP/NetNews huggingface dataset:
From: dblackbu@alleg.edu (Dave Blackburn)
Subject: Re: Extracting Scripts from a stack?
Organization: Allegheny College
Distribution: usa
Date: Tue, 12 Jan 1993 22:24:49 GMT

In article <1993Jan12.203152.8378@cs.uoregon.edu> ericg@getafix.cs.uoregon.edu  
(eric leander gorr) writes:
|Are there any utilities out there that will allow me to extract scripts from
|a HC stack?  This is related to another message I posted about a stack
|I can no longer bring into Hypercard, but still might be somewhat ok so that
|a script extraction might work.
|
|Any info would be appreciated...

Microsoft Word v.4.00 will open the data fork as an ASCII text file (hold down  
shift before opening the File menu and it changes from "Open" to "Open Any  
File"). There will be hash from the bitmaps but the text can be found and  
extracted. Or you can use ResEdit to strip out the resource fork and change  
the file type to "TEXT" and do the same thing with any other word processor. 
--

* Dave Blackburn  dblackbu@alleg.edu  flames to self@home.dev.null *          
* Chemistry, Macs, Hypercard, cats,  <>< religion, & the Dead      *
* (Anyone else who held these opinions would be as crazy as I am.) *
*   "Sometimes the songs that we hear are just songs of our own"   *
Xref: sparky comp.sys.mac.hypercard:4742 comp.sys.mac.comm:12754
From: jstern@garnet.berkeley.edu ()
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.comm
Subject: AppleTalk network data sharing in classroom
Date: 8 Jan 1993 18:26:24 GMT
Organization: University of California, Berkeley
Distribution: world
NNTP-Posting-Host: garnet.berkeley.edu

I'm using AppleTalk in a middle school science classroom with 16 LC IIs,
an LC, an SE, a IIci AppleShare Server,a Laserwriter, and 4
Imagewriters. Students (using the 16 LC IIs) share data by sending files
and messages (via HyperCard) to each other. Whenever more than a few
students start sharing data, things become a mess: I'd estimate that
maybe a quarter of the messages never get through . My question: is this
normal? Are we overloading the network? It seems to me that it ought to
be able to handle this much stuff, though I wouldn't expect it to be
terribly fast. Has anybody else done this kind of thing?

Thanks,
Judy Stern
Instructional Technology Program
UC Berkeley
jstern@garnet.berkeley.edu

Newsgroups: comp.sys.mac.hypercard
From: ellens@bnr.ca (Chris Ellens)
Subject: Text in Background Fields
Followup-To: comp.sys.mac.hypercard
Organization: Bell-Northern Research
Date: Tue, 5 Jan 1993 17:58:12 GMT

I'm sure there's a simple answer to this but I'm stumped. How can I create
a field in the background and enter text into it? I can create the field
ok, and I can enter text into it at the card layer, but if I then set the
"shared text" property, all of the text disappears. I can't enter the text
at the background layer at all (I don't get the I-beam cursor). Cutting the
field from a card and pasting to the background also deleted all of the
text.

Chris Ellens         ellens@bnr.ca
Newsgroups: comp.sys.mac.hypercard
From: skwong@cuse1.se.cuhk.hk (Wong Sai Kee (Graduate Assistant))
Subject: Re: Page Setup from script?
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Sun, 10 Jan 1993 07:15:28 GMT

brod@jessica.Stanford.EDU (Brodie Lockard) writes:

>I have some text that should print in portrait mode and some maps that
>should print in landscape mode.  Is there any way to change the orientation
>from HyperTalk so users needn't go through the Page Setup dialog?  Does
>anyone have an XCMD that does this?

I want to know too.

>Brodie Lockard      brod@jessica.stanford.edu
From: bhostetl@silver.ucs.indiana.edu (Brian Hostetler)
Subject: Re: Field in Palette?
Organization: Indiana University
Distribution: comp.sys.mac.hypercard
Date: Thu, 7 Jan 1993 20:31:39 GMT

In article <1993Jan7.192655.8682@macc.wisc.edu> demerit@vms.macc.wisc.edu (J. DeMerit) writes:
>Another idea would be to have the palette have a "search" button that brings 
>up an ask window (Like: Please enter a word to search for:).  The search 
>button in the powerTools can call one line -- which would be a handler.

	I was hoping to put buttons on the palatte that would let the
user specify the type of search.  Also, I wanted the palatte to remain
open at all times.  I'll keep working on it, but I don't think I'm
going to get what I want for free...

-- 
-brian

bhostetl@ucs.indiana.edu          |      "Even if the brain is removed,
bhostetl@silver.ucs.indiana.edu   |     the insekt continues to live..."
Newsgroups: comp.sys.mac.hypercard
From: mhz7c@curry.edschool.Virginia.EDU (Mark H. Zollinhofer)
Subject: Re: Locking and Unlocking fields....
Organization: University of Virginia
Date: Tue, 12 Jan 1993 04:16:17 GMT

danny@martha.utcc.utk.edu  writes:
> Hi.  I have several fields that are locked because of grouped text
> inside of them.  I want to be able to allow users to add their own
> text, but also once they have added the text I would like, in a script
> to be able to group the text so when they click on it I can perform a
> certain action.  I would like to use a command-key macro to allow them
> to easily lock and unlock the fields.  Could someone tell me how to do
> this as well as group the text that they type in.  Thanks in advance.
> 
> --
> Danny McCampbell
> UT Computing Center
> danny@utkux1.utk.edu
I don't know about the grouping aspect; I haven't worked with
that yet.  HOwever, if you have the PowerTools stack that comes
with the HyperCard Developers Kit (i.e. the full "bought"
version) you can use the F14 key.  The action is to place the
cursor within the field that you wish to lock/unlock, then hit
the F14 key.  The macro toggles the lock/unlock property.

Obviously, you'll need an extended keyboard, so this is mostly
for doing developing work. (This works if you go to the menu
card and select the "function and control keys" menu item, and
then click the "install in stack" button.)
--
|   Mark H. Zollinhofer          *****  Quotable quote:                 |
|   619 Highland Ave.              |     "There's no need to take God   |
|   Charlottesville, VA 22903      |      seriously." -Lot's wife       |
|   internet: mhz7c@virginia.edu   |                  (Gen 19:26)       |
From: deslade@vaxsar.vassar.edu
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Scrolling field problem.... (my solution)
Date: 8 Jan 93 20:33:21 +1000
Organization: Vassar College

In article <1993Jan7.183928.25218@utkux1.utk.edu>, danny@martha.utcc.utk.edu
(Danny William McCampbell) writes:

> Hi all.  I have two scrolling fields side by side.  Each contain text.
> I have enabled an option to have the fields to scroll together or
> seperately.  The problem is when the fields are set to scroll together
> one field has more text than the other and the last few lines of the
> other field are not visible.  I cannot have this.  Is there any way
> to find out what the very last scroll number is in the field with
> the longest text as well as the other field so when one gets to the
> end I can set the other one to the end?  Please help me........
> 
> Any suggestions on maybe a different way to go about this would be
> greatly appreciated.

----- Put this handler in your background or higher script and enjoy!   -dennis

function CalculateScroll whichFld, saveSelection
  
  -- Calculates the maximum scroll of the scrolling field pointed to by
  -- whichFld.  It assumes that the field it is been told to work with
  -- is a scrolling field; it does not matter if the field is locked.
  --
  -- whichFld is passed in as a string, as in:
  --     CalculateScroll "bg fld 1", true
  -- or
  --     CalculateScroll (the target), false
  --
  -- saveSelection is a boolean: true means remember what text was
  -- selected and select it after we are done, false means don't
  -- bother.  There is a bug which causes the selection to flicker
  -- if saveSelection is true: can anyone fix this?
  
  lock screen
  -- save the current selection
  put the selectedChunk into Holder
  -- save whichFld's soon-to-be-altered properties
  put the lockText of whichFld into locked
  put the scroll of whichFld into scrolled
  set the lockText of whichFld to false
  
  -- the following lines force HyperCard to reveal how far a field must
  -- scroll to get to show the last line of its text.
  select text of whichFld
  type numToChar(29)
  put the scroll of whichFld into result
  
  set the lockText of whichFld to locked
  set the scroll of whichFld to scrolled
  unlock screen
  
  if saveSelection is true
  then select Holder
  
  return result
end CalculateScroll

+----------------------------------------+----------------------------------+
|                                        |   Standard disclaimer for rent.  |
|  Dennis Slade Jr.                      |         +++++++++++++++          |
|  2217 Mckean Street                    |         Inquire within.          |
|  Philadelphia, PA  19145               +----------------------------------+
|  internet: deslade@vaxsar.vassar.edu   |      Develop the world...        |
|  voice:    01.215.468.4472             |    Develop yourself...           |
|                                        |  AIESEC: in a country near you!  |
+----------------------------------------+----------------------------------+
Newsgroups: comp.sys.mac.hypercard
From: stephen@cs.uow.edu.au (Stephen Lance Rogan)
Subject: Colour fonts in Hypercard
Keywords: colour font hyprcard help
Organization: Dept of Computer Science, Wollongong University, Australia
Date: Mon, 11 Jan 1993 03:02:18 GMT

HELP !

Does anyone know if it is possible to have multicoloured fonts in
Hypercard ?

We have created a font of road signs, and we want to colour them
to be the same as the sign they represent.

We only need 16 colours for the whole font.

Thanks in advance

Stephen Rogan.
From: gasser@eniac.seas.upenn.edu (Nathan Gasser)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Re-arranging field and tab
Date: 13 Jan 93 02:41:16 GMT


In article <C0rrEI.4v6@watserv1.uwaterloo.ca> anderson@fpg.uwaterloo.ca (Glenn Anderson) writes:
>I have a card where I have rearranged the fields on the screen. The problem is
>that when I tab through the fields they follow the old order which now makes
>little sense.
>
>Is there a way to renumber the fields so that tab will work "properly"
>left->right, top->bottom


Yes, you can renumber fields on a card.  Use the "Bring Closer" and
"Send Farther" commands from the "Objects" menu.  Select a field and
chose one of those commands to change its number.  I forget offhand
which way they go, but some experimenting will do you good :)

Nate
--

Nathan Gasser       ><>         
gasser@eniac.seas.upenn.edu     

Newsgroups: comp.sys.mac.hypercard
From: NJTaber@MITRE.org (N. J. Taber)
Subject: Re: Help Deleting Cards
Organization: The MITRE Corporation
Distribution: global
Date: Tue, 5 Jan 1993 13:39:17 GMT

On 4 Jan 1993 23:12:13 GMT, jstern@garnet.berkeley.edu () writes:

> I've found (at least with the corruptions I've had) that corrupted
> cards don't "exist". The following loop works:
> repeat with x = 1 to the number of cds
>    if there is a cd x then
>       go cd x
>       domenu "copy card"
>       go to stack uncorrupted
>       domenu "paste card"
>       go to stack corrupted
>    end if
> end repeat

Great tip - but as written, this script will result in scrambling the 
order of cards copied into stack uncorrupted.  It should work correctly 
with "go to last card of stack uncorrupted" before pasting.

Hope this helps!
N. J. Taber
NJTaber@MITRE.org


Newsgroups: comp.sys.mac.hypercard
From: demerit@vms.macc.wisc.edu (J. DeMerit)
Subject: Re: Field in Palette?
Organization:  University of Wisconsin Academic Computing Center
Distribution: comp.sys.mac.hypercard
Date:  7 JAN 93 13:21:18    

In article <tommy-070193103336@129.59.16.56>, tommy@macpost.vanderbilt.edu (Tommy Williams) writes...

>In article <C0GDJr.9nr@usenet.ucs.indiana.edu>,
>bhostetl@silver.ucs.indiana.edu (Brian Hostetler) wrote:
>> 
>> I've tried using PowerTools to create a palette with a field, but it
>> doesn't work.  Basically, I'm trying to create a search palette where
>> the user just puts something into the field and clicks on a button
>> specifying the type of search.

> 
>You can't put a field in a palette with those tools. You need something
>more advanced (such as Heizer Software's $149 WindowScript) or a shareware
>XCMD I've seen called ShowDialog v1.6,  Jay Hodgdon, Ignatz Software.
>WindowScript is much, much more flexible and powerful, but it's also more
>expensive.
> 
>I know a demo of WindowScript exists, but I can't find it on the net
>anywhere. I also cannot find Jay Hodgdon's "ShowDialog." Perhaps it came
>from America Online. If you've got a friend there...
> 


Brian,

Another idea would be to have the palette have a "search" button that brings 
up an ask window (Like: Please enter a word to search for:).  The search 
button in the powerTools can call one line -- which would be a handler.

It just seems less expensive than buying window script, but I've used 
windowScript and it does a fairly decent job with floating palettes.

Cathy (email: demerit@macc.wisc.edu)
Newsgroups: comp.sys.mac.hypercard
From: tommy@macpost.vanderbilt.edu (Tommy Williams)
Subject: Re: Field in Palette?
Followup-To: comp.sys.mac.hypercard
Organization: Vanderbilt School of Medicine
Distribution: comp.sys.mac.hypercard
Date: Thu, 7 Jan 1993 16:45:08 GMT

In article <C0GDJr.9nr@usenet.ucs.indiana.edu>,
bhostetl@silver.ucs.indiana.edu (Brian Hostetler) wrote:
> 
> I've tried using PowerTools to create a palette with a field, but it
> doesn't work.  Basically, I'm trying to create a search palette where
> the user just puts something into the field and clicks on a button
> specifying the type of search.  What to do?
> 
> 
> 
> 
> -- 
> -brian
> 
> bhostetl@ucs.indiana.edu          |      "Even if the brain is removed,
> bhostetl@silver.ucs.indiana.edu   |     the insekt continues to live..."

You can't put a field in a palette with those tools. You need something
more advanced (such as Heizer Software's $149 WindowScript) or a shareware
XCMD I've seen called ShowDialog v1.6,  Jay Hodgdon, Ignatz Software.
WindowScript is much, much more flexible and powerful, but it's also more
expensive.

I know a demo of WindowScript exists, but I can't find it on the net
anywhere. I also cannot find Jay Hodgdon's "ShowDialog." Perhaps it came
from America Online. If you've got a friend there...

--Tommy Williams        tommy@macpost.vanderbilt.edu

  The Virgil Project
  Vanderbilt University School of Medicine
  (615) 343-0343
From: spw@uniwa.uwa.edu.au (Steven P Wilkinson)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Text in Background Fields
Date: 6 Jan 1993 13:14:11 +0800
Organization: The University of Western Australia
NNTP-Posting-Host: uniwa.uwa.edu.au
X-Newsreader: Tin 1.1 PL5

Chris Ellens (ellens@bnr.ca) wrote:
: I'm sure there's a simple answer to this but I'm stumped. How can I create
: a field in the background and enter text into it? I can create the field
: ok, and I can enter text into it at the card layer, but if I then set the
: "shared text" property, all of the text disappears. I can't enter the text
: at the background layer at all (I don't get the I-beam cursor). Cutting the
: field from a card and pasting to the background also deleted all of the
: text.
: 
: Chris Ellens         ellens@bnr.ca

I just did this to be absolutely sure.
1. Create the background field.
2. Make it a shred text field.
3. Choose the browse tool.
4. Choose "background" from the Edit menu.(the menu bar is now striped)
5. Click in the field and type away.

Steve Wilkinson

Newsgroups: comp.sys.mac.hypercard
From: loa@syo.lu.se (Lars-Olof Albertson)
Subject: Re: Menu Question
Organization: Lund University
Date: Tue, 5 Jan 1993 20:07:00 GMT

In article <01050023.mrqcsj@sable.cars.com> shawn@cars.com (Shawn 
Connelly) writes:
> There's an undocumented feature with menuMessage's though. You cannot
> have any more than 20 menuMessages. For this reason, I always trap
> and use on doMenu. Yes, I have mile-long if0then-else statements, but
> maybe this could be solved with a 'case' statement in the next version
> of HC, not to mention the restirction previously mentioned.

My reason for using domenuhandler instead of menuMessage is that I often 
use menus which the user can build.  The menuitems ar stored in a field 
and loaded into a global at openstack or closefield. The domenu handler
looks like this

on domenu what
   global gmenuitems
   if what & return is in gmenuitems then
      put what into field fo
      exit domenu
   end if
   pass domenu
end domenu

If you want you can also have a menuitem which can put new menuitems into 
the textfield.In one application the user can do a slection and then 
by a menu command create a new field and store the selection in the field.
The names of the textfields are the menuitems in the users menu. When she
or he need the text again it is only  to mark the field and take the manu command.

Of course, you can put lots of menuitmens into a menu. I think by  30 - 35 
items you should consider to use Rinaldis listSelect instead.

Regards
Lars-Olof Albertson
From: peter.anderson@f914.n714.z3.fido.zeta.org.au (Peter Anderson)
Newsgroups: comp.sys.mac.hypercard
Subject: RE-pop-up menus
Organization: Fidonet. Gate admin is fido@socs.uts.edu.au
Date: 31 Dec 92 10:02:27 GMT

Original to: aaron.schrab

The following uses a pure Hypercard method of providing popup menus.  There
is a '?' (Help) button adjacent to the field where you require the input
from the pop-up menu.  The 'RINALDI' collection of XCMDs (available on most
Mac BBSs also contain some good menu XCMDs.  I can send you a disk with the
stack if you wish.

Peter Anderson
31 Sheaffe Street
HOLDER   ACT   2611
AUSTRALIA

-----------------------------------
The following script goes in the STACK script.
The purpose of this script is to set-up the data for the pop-up menu.
This technique has the advantage that it can be used in any card within
the stack as it is available globally.  Also as many menus as required 
can be set up.  The contents of the menus are also available for
modification in ONE place.

on openStack
  global citiesMenu
  -- Field selection menu setup
  put "Adelaide,Brisbane,Canberra,Darwin,Hobart,Melbourne,"
  & "Perth,Sydney" into citiesMenu
end openStack

on closeStack
  stop using stack "Print The Scripts"
end closeStack

on openCard
  hide bg field "Valid cities"
  put the number of this card into bg field "Card number"
  put the number of cards into bg field "Number cards"
end openCard

-----------------------------------
The following script goes with a '?' button adjacent to 'City' field.
The purpose of this script is to display the list of valid choices as a
pop-up menu.

on mouseUp
  global citiesMenu
  put 1 into itemNumber
  repeat for number of items in citiesMenu
    put item itemNumber of citiesMenu into line itemNumber of 
    bg field "Valid cities"
    add 1 to itemNumber
  end repeat
  show field "Valid cities"
end mouseUp

-----------------------------------
The following script goes with a background field called "Valid cities"
The purpose of this script is to copy the selected item into the fore-
ground field.

on mouseUp
  get the value of the clickLine
  if it is empty then
    hide field "Valid cities"
    exit mouseUp
  end if
  put it into bg field "City"
  hide bg field "Valid cities"
end mouseUp

--- Tabby 3.0
 * Origin: *MacConnection*  Sydney, Australia. 61-2-907-9198  (3:714/914)
Newsgroups: comp.sys.mac.hypercard
From: loa@syo.lu.se (Lars-Olof Albertson)
Subject: Re: How to find if you are in the background?
Organization: Lund University
Date: Tue, 5 Jan 1993 20:18:27 GMT

In article <1iacheINNdh4@moe.ksu.ksu.edu> Chandima Cumaranatunge 
<chan@matt.ksu.ksu.edu> writes:
> how can I find out if I'm in the background from within a HyperTalk
> script?

if the checkmark of menuitem "Background" of menu "Edit" is true then
  -- you are in the background
else
  -- you are not in the background
end if

Regards
Lars-Olof Albertson
From: mike_s@cybermac.lm.sub.org (Michael Schmittner)
Newsgroups: comp.sys.mac.hypercard
Subject: Hypercard compiler
Date: Fri, 8 Jan 93 12:35:51 CET
Organization: M&T.GER
Reply-To: mike_s@cybermac.lm.sub.org (Michael Schmittner)
Distribution: world
X-Mailer: uAccess LITE - Macintosh Release: 1.5v4

Hi,

Anybody out there, using this new Hypercard compiler "CompileIt"?
If so, how is it? 

Thx in advance!

Best regards

Michael

-----------------------------------------------------------------------
Michael Schmittner  # mike_s@cybermac.lm.sub.org
Mittermayrstr. 27    #   CompuServe: 70007,5257
8000 Munich 40       #     Tel: **49*89-3004917     
-----------------------------------------------------------------------  
       *****      Life starts at `030     *****
-----------------------------------------------------------------------
Newsgroups: comp.sys.mac.hypercard
From: ellens@bnr.ca (Chris Ellens)
Subject: Re: Text in Background Fields
Followup-To: comp.sys.mac.hypercard
Organization: Bell-Northern Research
Date: Mon, 11 Jan 1993 19:07:39 GMT

In article <ellens-050193130021@47.220.2.154>, ellens@bnr.ca (Chris Ellens)
wrote:
> 
> I'm sure there's a simple answer to this but I'm stumped. How can I create
> a field in the background and enter text into it? I can create the field
> ok, and I can enter text into it at the card layer, but if I then set the
> "shared text" property, all of the text disappears. I can't enter the text
> at the background layer at all (I don't get the I-beam cursor). Cutting the
> field from a card and pasting to the background also deleted all of the
> text.
> 
Thanks to everyone who replied to this. I got a lot of tips (what a helpful
newsgroup!) but the simple answer was: I should have set the "sharedText"
attribute BEFORE entering the text, and did I remember to change from the
field tool back to the browse tool before trying the enter the text.

Chris Ellens         ellens@bnr.ca
Newsgroups: comp.sys.mac.hypercard
From: Douglas B. Stein <doug@wri.com>
Subject: Re: HyperCard and Mathematica (Sys 7)
Organization: Wolfram Research, Inc.
X-Useragent: Nuntius v1.1
Date: Tue, 12 Jan 1993 21:46:46 GMT

In article <bulmer.726788324@newsroom.utas.edu.au> Michael R. Bulmer,
bulmer@hilbert.cc.utas.edu.au writes:
>Has anyone used AppleEvents to use Mathematica from HyperCard
>to do calculations?  Could anyone send me an example script,
>even just the general "do script" message required?

A Hypercard XFCN (with source and example stack) can be obtained via
anonymous ftp from mathsource.wri.com in the following file:

/pub/Programming/MathLink/Examples/HyperMathLink.sit.hqx

Alternatively, you can send an email to mathsource@wri.com containing the
following two lines:

compress off
send 0204-163-0022

It works best with the "standalone" 2.1b9 kernel available to registered
users of Mathematica 2.1 on the Macintosh. However, since it uses
MathLink (which is layered on top of the PPC Toolbox or MacTCP), it can
communicate with Mathematica kernels running on Unix machines as well as
on the Mac. If you wish to do this or you wish to use the shipping Mac
version (2.1), edit the script for the "Link to Mathematica" button in
the example stack; it contains several alternatives - comment out all but
the one most appropriate for your case.

Another way of doing this is to send a "DoScript" AppleEvent containing
the text you wish to be evaluated. Mathematica will return the textual
form of the answer. This works with the shipping version of Mathematica
(2.102) but suffers all of the limitations of AppleEvents (esp. the 64K
limit on event size).

Doug
------------------------------------------

Doug Stein
Member of Technical Staff
MathLink Development
Wolfram Research, Inc.
doug@wri.com
From: darnell@qut.edu.au
Newsgroups: comp.sys.mac.hypercard
Subject: Stacks directories and FAQ?
Date: 5 Jan 93 14:07:59 EST
Organization: Queensland University of Technology

Hi.
I am interested in Mac stacks. Is there a listing of available
stacks anywhere?
Is there a FAQ for this group?

Newsgroups: comp.sys.mac.hypercard