Re: global variables
Re: global variables
- Subject: Re: global variables
- From: Jim Brandt <email@hidden>
- Date: Thu, 18 Jul 2013 05:17:02 -0500
I can't declare this data as a property. (Well, I could, but it would be a huge pain in the rear to maintain).
That's why I was considering declaring it as a global. To expand it's scope.
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.
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