Re: Define script object with variable
Re: Define script object with variable
- Subject: Re: Define script object with variable
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 14 Aug 2002 18:40:52 -0400
- Organization: [very little]
>
Date: Wed, 14 Aug 2002 15:17:12 -0500
>
Subject: Define script object with variable
>
From: Laine Lee <email@hidden>
>
To: Applescript Users <email@hidden>
>
>
I've been working with a script to save automatically generated scripts to
>
the scripts folder. I've been creating a file, writing the script text to
>
the file, then using osacompile to turn it into a compiled script. It would
>
seem easier to me to put my automatically generated script into a script
>
object and use the store script command. Is there any way to define a script
>
object with a variable?
I've done it by putting the script object code in a handler and setting
a variable to an execution of the handler. Using an applet without any
code as a template, I made a copy of the file and loaded the script
object into the copy.
It was pointed out to me that I could have used the originating applet
as a template, but I deferred because it seemed somehow incestuous. ;-)
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[8/14/02 6:39:20 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.