• 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: Load Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Load Script
      • From: Axel Luttgens <email@hidden>
    • set volume from shell
      • From: Ronald Hofmann <email@hidden>
References: 
 >Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Stan Cleveland <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Alex Zavatone <email@hidden>)
 >Re: Load Script (From: Luther Fuller <email@hidden>)
 >Re: Load Script (From: Ron Hunsinger <email@hidden>)

  • Prev by Date: Re: Load Script
  • Next by Date: Re: Load Script
  • Previous by thread: Re: Load Script
  • Next by thread: set volume from shell
  • Index(es):
    • Date
    • Thread