Howto get the name of current Livecode process

Thierry Douez th.douez at gmail.com
Fri Apr 4 14:36:11 EDT 2014


> Actually I re-read your email and it's easier than my first solutions.
>
>     put the version & CR & revLicenseType() into fld 1
>
> Phil

almost.. returns:
6.6.0
community

Well, this is the one which does exactly what I need:

function way3
   get matchText( the address, "/([^/]+?)\.app/", processName)
   return processName
end way3

returns:   "LiveCode Community 6.6"

Merci et bon week-end,

Thierry


> On 4/4/14, 11:16 AM, Phil Davis wrote:
>>
>> on mouseUp
>>   put way1() & CR & way2() into fld 1
>> end mouseUp
>>
>>
>> function way1
>>     set the itemDel to slash
>>     return "/" & item 2 to -1 of last line of shell("ps" && the processID)
>> end way1
>>
>>
>> function way2
>>     set the itemDel to colon
>>     return item 2 to -1 of the address
>> end way2
>>




More information about the Use-livecode mailing list