using a custom property as a sort key ?

Thomas McGrath III 3mcgrath at adelphia.net
Sun Feb 29 15:54:22 EST 2004


Yes the altID can be set.

First put the cards in the order you want via marking them or by a 
complex sort then do:

put 0 into myvar

repeat with v = 1 to the number of cards
	set the altID of card v to (myVar +1)
end repeat


HTH

Tom

On Feb 29, 2004, at 12:30 PM, Christopher Mitchell wrote:

> Tom,
>
> Hrm, I'll look into this property then provided it can  be 'set' .   I 
> would just sort on the card ID number except that I created 4 cards in 
> the beginning to test the audio and transport controls, then added the 
> other 20+ cards later, after a lot of added/deleted additional cards 
> which threw off the numbers.
>
> Yours,
> Chris
> On Feb 29, 2004, at 7:31 AM, Thomas McGrath III wrote:
>
>> Chris,
>>
>> Don't forget the altID of each card as well...
>> The altID does not change if you have them in the preferred order 
>> when you set the altID.
>>
>> This is good to get back to the original order.
>>
>> Then you can use the index of card to sort other ways.
>>
>> TOM
>>
>>
>> On Feb 28, 2004, at 11:58 PM, Christopher Mitchell wrote:
>>
>>> This looks like something just about what I was hoping for.  It is 
>>> still not my perfect syntax but if it does the same thing then so  
>>> be it.  What I'm really looking for (ideally) is a command that 
>>> bypasses the marking/going step and just goes there.
>>>
>>> go card where (the Index of this card = 1)
>>>
>>> or
>>>
>>> go card with the Index = 1
>>>
>>> an exact parallel of something like: go card with the short name 
>>> "foo"
>>>
>>> In any case these beat my solution - but I was very pleased with 
>>> myself for having made it work on my own even in a very crude 
>>> script.
>>>
>>> Thanks,
>>> Chris
>>> On Feb 28, 2004, at 10:10 PM, Ken Ray wrote:
>>>
>>>> How's this:
>>>>
>>>>   mark cards where (the Index of this card = 1)
>>>>   go next marked card
>>>>   unmark all cards  -- just to be safe
>>>>
>>>> HTH,
>>>>
>>>> Ken Ray
>>>> Sons of Thunder Software
>>>> Email: kray at sonsothunder.com
>>>> Web Site: http://www.sonsothunder.com/
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: use-revolution-bounces at lists.runrev.com
>>>>> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
>>>>> Christopher Mitchell
>>>>> Sent: Saturday, February 28, 2004 9:11 PM
>>>>> To: How to use Revolution
>>>>> Subject: using a custom property as a sort key ?
>>>>>
>>>>>
>>>>> Howdy,
>>>>>
>>>>> Is it possible to use a custom property as a sort key?  I
>>>>> have a stack
>>>>> of flashcards that have an embedded "permanent" order in the
>>>>> form of a
>>>>> custom property called Index.  I use a pretty crude script to flip
>>>>> through all the cards (after being shuffled, aka sort on key 
>>>>> random),
>>>>> find the one with index 1, go to it, then sort on it.
>>>>>
>>>>> Is it possible to say something like:   go to card with Index of 1
>>>>>
>>>>> ? (obviously that is not appropriate transcript, as i'm searching 
>>>>> for
>>>>> the syntax)... this would be similar to saying something along the
>>>>> lines of     go to card with short name "xyz"
>>>>>
>>>>> Surely this is implemented, and I just can't find it.
>>>>>
>>>>> Yours,
>>>>> Chris
>>>>>
>>>>> _______________________________________________
>>>>> use-revolution mailing list
>>>>> use-revolution at lists.runrev.com
>>>>> http://lists.runrev.com/mailman/listinfo/use-> revolution
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> use-revolution mailing list
>>>> use-revolution at lists.runrev.com
>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>
>> Thomas J. McGrath III
>> SCS
>> 1000 Killarney Dr.
>> Pittsburgh, PA 15234
>> 412-885-8541
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541



More information about the use-livecode mailing list