Re: Load Script
Re: Load Script
- Subject: Re: Load Script
- From: Luther Fuller <email@hidden>
- Date: Thu, 26 May 2011 07:49:17 -0500
On May 25, 2011, at 8:11 PM, Ron Hunsinger wrote:
> The problem you're running into is that when you use "load script", the loaded script's parent isn't set to the script doing the loading, and the parent cannot be changed once initialized.
On May 26, 2011, at 2:23 AM, Axel Luttgens wrote:
> set scriptB to load script alias (((path to desktop) as text) & "B.scpt")
> tell scriptB to DoThis()
My choice of subject was misleading. I am (not yet) using load script, only 'run script ...'.
When I use 'run script ...', I find that ...
1. Handlers in the parent (calling) script are available in the called script.
(Use of 'my' is optional and has nothing to do with my problem.)
2. Properties in the parent (calling) script are NOT available in the called script.
(But they ARE available within a parent handler used in the called script.)
Sometime, today, I am going to look into 'load script ...', too.
(But my current project only requires 'run script ...'.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden