UUID
Monte Goulding
monte at sweattechnologies.com
Tue Aug 17 08:30:25 EDT 2010
Gotta love this list ;-)
On 17/08/2010, at 10:24 PM, Klaus on-rev wrote:
> Hi all,
>
> Am 17.08.2010 um 14:18 schrieb Malte Pfaff-Brill:
>
>> Hey Monte,
>>
>> http://marksmith.on-rev.com/revstuff/
>> He has got a very nice lib for UUIDs
>>
>> Cheers,
>>
>> Malte
>
> Yep, or just use shell on Mac and Win (no idea about Linux, but might be similar to MacOS)!
>
> Put these two lines into a custom property of your stack or wherever
>
> Set TypeLib = CreateObject("Scriptlet.TypeLib")
> result = TypeLib.Guid
>
> And then use this function to get a UUID:
>
> function get_uuid
> if the platform = "MacOS" then
> put shell("uuidgen") into tUUID
> else
> do (the YOUR_CP_NAME_HERE of stack "your stack with the CP") as VBScript
> put the result into tUUID
>
> ## Comes in {} on Windows!
> delete char -1 of tUUID
> delete char 1 of tUUID
> end if
> return tUUID
> end get_uuid
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list