HyperCard: Script to Move an Object to the Background (7/92)

The moveToBkgnd handler asks you what object you want moved to the
background. If the object moved is a field, then its text goes with it.

on moveToBkgnd
put "Click on the object to move to the background..."
wait until the mouseClick
put empty
put hitTest(the clickLoc) into object
if "card button" is not in object and "card field" is not in object
then exit moveToBkgnd
select object
type "x" with commandKey
set editBkgnd to true
type "v" with shiftKey,commandKey -- paste text too
choose browse tool
end moveToBkgnd


This article is adapted from the Claris Tech Info database.
Published Date: Feb 19, 2012