Re: Dynamic Handlers. Not?
Re: Dynamic Handlers. Not?
- Subject: Re: Dynamic Handlers. Not?
- From: What does not kill you only makes you stronger <email@hidden>
- Date: Tue, 06 Feb 2001 22:15:46 -0600
on 02/05/01 11:44 PM, email@hidden wrote:
>
Here's a nifty script that I've been trying to get to work under Script
>
Editor for some time, and I've finally got it:
>
>
set x to text returned of (display dialog "Command:" default answer "")
>
run script x
>
>
Or, better yet:
>
>
run script text returned of (display dialog "Command:" default answer "")
>
>
>
A script that can run a script!!!
>
>
--
>
Andrew Merenbach
Veeeery cool!
more fun:
************** script
on open (theScriptInTextForm)
set executeScript to read theScriptInTextForm as string
run script executeScript
end open
*************
Text Document to drop on script:
*************************
property kConstant : {}
tell application "Finder"
set y to (name of every folder of startup disk)
repeat with ay in y
set kConstant to kConstant & return & ay
end repeat
display dialog kConstant as string buttons "Ok" default button 1 with
icon 1
end tell