Re: global variables
Re: global variables
- Subject: Re: global variables
- From: Alex Zavatone <email@hidden>
- Date: Thu, 18 Jul 2013 09:38:37 -0400
Sent from my iPad
On Jul 18, 2013, at 6:17 AM, Jim Brandt <email@hidden> wrote:
> I can't declare this data as a property. (Well, I could, but it would be a huge pain in the rear to maintain).
>
Huh? How so?
> That's why I was considering declaring it as a global. To expand it's scope.
>
It is scope? FYI, it's = it is.
> It is data that is contained in .plist files being read as the first step of the main script.
> The data is in .plist files because I anticipate expanding these lists over time by adding more files to load. Also, editing the data is as easy as opening the file in Xcode and making changes. Each .plist file contains an single data item that is an array that itself has both individual elements and more arrays.
>
OK.
But I'm confused in how declaring a property will make this more difficult for you than making it a global.
> On 17-Jul-2013, at 6:59 PM, Alex Zavatone wrote:
>
>> Looking at it now. You can simply set up another script to be a data container. But you said you have some handlers in a script. Have you tried declaring a property at the top of your script and then accessing that property from within each of the handlers?
>>
>
>
> _______________________________________________
> 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
_______________________________________________
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