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

Re: global variables


  • Subject: Re: global variables
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 17 Jul 2013 19:59:36 -0400

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?

On Jul 17, 2013, at 7:48 PM, Jim Brandt wrote:

> Alex,
>
> As one who currently doesn't know Objective-C, what would this look like in Applescript?
>
> I'm not sure what you mean by declare "a data storage class/script"
>
> I've already loaded 5 lists from a multitude (16 .plist files). I just need to access them throughout all the handlers of the script. I just didn't want to pass 5 lists plus all the other data the handler needs every time I call it.
>
> Jim
>
> On 17-Jul-2013, at 1:55 PM, Alex Zavatone wrote:
>
>> Why not declare a data storage class/script and reference it from your main script?
>>
>> That's what we do in Objective C.
>>
>
>
> _______________________________________________
> 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


  • Follow-Ups:
    • Re: global variables
      • From: Jim Brandt <email@hidden>
References: 
 >global variables (From: Jim Brandt <email@hidden>)
 >Re: global variables (From: Alex Zavatone <email@hidden>)
 >Re: global variables (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: global variables
  • Next by Date: Re: global variables
  • Previous by thread: Re: global variables
  • Next by thread: Re: global variables
  • Index(es):
    • Date
    • Thread