Re: Change properties in one applet from another
Re: Change properties in one applet from another
- Subject: Re: Change properties in one applet from another
- From: Gary Lists <email@hidden>
- Date: Mon, 13 Jan 2003 16:12:10 -0500
On or about 1/13/03 7:33 AM, Andy Wylie wrote:
>
> 'store script replacing yes' is what saves it on disk "for
>
> real"
>
>
but another way...
>
>
property pStr : (choose file) as string
>
>
on _set(x, y)
>
set scpt to load script alias (my pStr)
>
set scpt's a to x
>
set scpt's b to y
>
end _set
>
>
to _get()
>
(load script my pStr)'s {a, b}
>
end _get
Andy and/or Paul --
Is one 'better' (more portable, faster, reliable, etc) than the other? My
actual application of these processes is, briefly:
The main working script droplet has a property, called 'already', which is
initially = false.
I have a line in both the run and open handlers which says:
if not already then configureMe()
I want to be able to change the value of 'already' by dropping the first
script onto a second droplet which will simply change the value of 'already'
back to false.
(This, so that I don't have to use an osax like Jon's to catch keypresses
for resetting.)
The first-run condition (when 'already' is false) asks the user a series of
questions, so I'd like to be able to have things reset by simply dropping
the main script droplet onto a "resetter droplet".
Capiche? Advice on which method is more appropriate...or is 6 of one, half
dozen the other?
--
Gary
_______________________________________________
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.