moving a Script object to a load script file
moving a Script object to a load script file
- Subject: moving a Script object to a load script file
- From: Richard Covert <email@hidden>
- Date: Thu, 3 Jun 2004 15:07:30 -0500
I have an AS script that is lgetting alrger the more I work on it. I
have one main script object named "RadioShow"
that has several children. As I idinish debugging each child script
object I would like to move that script object to
a seperate AS script file.
Dor example I have:
script RadioShow
script RadioShow
(* This is the Base Object. It contains the data common
to all object dealing with a radio show.
It will have the following:
HostName - derived from either thr Trim Files or from the name of the
chosen
folder.
ShowDate - derived from either thr Trim Files or from the name of the
chosen
folder.
*)
property HostName : missing value -- ASCII characters (string)
property ShowDate : missing value -- MMDD (month and day as digits)
.
.
more stuff in this script object
end script
script SelectTrimFolder
property parent : RadioShow
.
more stuff in this script object
end script
How would I move the script object "SelectTrimFolder" to a seperate
file??
1) I used XCode to "File" -> "New File" -> "Applescript File"
2) cut and paste the working code from my large AS script file
containing all of my code to the new file
3) compile the new AS file but it complains about the statement:
property parent : RadioShow
obvously since it is not in the new file.
I guess I need to go back and read my AS books again.
_______________________________________________
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.