Script: select all objects at once
Posted: Sun May 17, 2015 7:33 am
This handler in my central lib stack selects all fields, buttons, … at once.
Message box in: SAO "F"
Message box out: select fld 1 and fld 2 and fld 3 and fld 4
Peter
Message box in: SAO "F"
Message box out: select fld 1 and fld 2 and fld 3 and fld 4
Code: Select all
on SAO BtOrFd
choose Pointer Tool
if BtOrFd = "B"
then
put "btn" into ObD
put the Number of btns into ObC
else
put "fld" into ObD
put the Number of flds into ObC
end if
put "select" into SelCmd
repeat with ii = 1 to ObC
put space & ObD && ii && "and" after SelCmd
end repeat
delete last word of SelCmd
put SelCmd into msg
do SelCmd
end SAO