• 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
Multiple params in list elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple params in list elements


  • Subject: Multiple params in list elements
  • From: michael <email@hidden>
  • Date: Mon, 5 Nov 2001 14:31:33 -0500

This is probably an old question, but I haven't found any examples.

I want to return a list of text 'unit' names, each with one or more 'params'.

I currently create such a 'list' with the code below, but I want to
add the 'current value' of each 'unit' in the same result.

any help or pointers to examples would be much appreciated.
tia
michael ferguson
email@hidden
=========================================
nextUnit:

for (i = 0; i < kMaxTableEntries; i++)
{
entry = &(cTable->entry[i]);

// gotta be an occupied element
if (entry->status & entrySetMask)
{
// if of the selected class
theTest = (entry->status & theMask);
if (theTest == theState)
{
// put text name into list
theErr = AEPutPtr(&theList, Lindex, typeChar, &entry-
>name[1], entry->name[0]);
if (theErr != noErr) goto exit;

(Here I want to add a 'short' parameter to the
corresponding 'unit' element)

Lindex += 1;
}
}
}
if (theErr == noErr)
// Append it to the reply -- that's all
theErr = AEPutParamDesc(reply, keyDirectObject, &theList);


  • Prev by Date: Re: Script on the fly? - solved
  • Next by Date: Re: iTunes 'current playlist'
  • Previous by thread: Creating new catalog in Cumulus 5.0
  • Next by thread: Launching AppleScript from CommandLine
  • Index(es):
    • Date
    • Thread