Bob Sneidar wrote:

> On Dec 27, 2011, at 12:28 PM, Todd Geist wrote:
>> It starts as this
>>
>> button id 1004 of card id 1002 of stack "/Users/todd/Desktop/A.livecode"
>>
>> it changes to this
>>
>> button id 1004 of stack "A"
>
> That is still the long ID.

Sort of. A true long ID includes the file path, but behaviors use a special form of that descriptor format with the short name of the stack, for portability as Todd surmised.

This sort of "truncated long ID" is useful in other areas as well, and FWIW I submitted a request to have a "truncated" keyword added to return that value for object references:
<http://quality.runrev.com/show_bug.cgi?id=7608>

It's not too hard to write a function to do this, but since apparently the engine already does this for behaviors it would be handy to have it accessible to us in scripts.

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to