• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic Handlers. Not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Scripting Eudora
  • Next by Date: OSA Menu conflict?
  • Previous by thread: Re: run-only applets/droplets
  • Next by thread: OSA Menu conflict?
  • Index(es):
    • Date
    • Thread