Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Parent property by "path to", passing variables between script files



Wouldn't that require the "subscripts" to re-load the script to pick up the
written out changes?  Surely the solution is to load the script ONCE in the
main script and then pass a reference to that loaded script object to the
subscripts. 

-----Original Message-----
From: applescript-studio-bounces+tophu=email@hidden
[mailto:applescript-studio-bounces+tophu=email@hidden] On Behalf
Of Matt Neuburg
Sent: Tuesday, April 26, 2005 12:52 PM
To: email@hidden
Subject: Re: Parent property by "path to", passing variables between script
files

On Tue, 26 Apr 2005 14:58:16 +0100, has <email@hidden> said:

>A 'load script' command will read a script file and create a new script
object
from that data. e.g. If you call it twice, you'll get two initially
identical
objects, not one, so changes made to one will not affect the other. The
solution
is to load each script only once, and share them throughout your entire
program.

Surely the solution is to call store script, so that changes are written out
to disk...? m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Re: Parent property by "path to", passing variables between script files (From: Matt Neuburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.