macOS, is my app active?
sundown at pacifier.com
Sat Nov 23 18:49:44 EST 2019
That is what I did too!
Then I went to each line and deleted the
white space until I ended up on the line
above, after that I pressed return so the
text went to its own line and it reformatted
that line properly. This process should be
done for each line.
> On Nov 23, 2019, at 3:42 PM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> Hi JB,
>> Am 24.11.2019 um 00:27 schrieb JB via use-livecode <use-livecode at lists.runrev.com>:
>> Hi Klaus,
>> I did that and got a error but by reformatting
>> the code properly it worked.
> what do you mean by "reformatting"?
> I copied this from a TXT file and "pasted unformatted" into my field.
> Still -> execution error
> I suspect this is a permission thing, maybe I need to grant LC, and my later app,
> permissions in the macOS Settings panel.
> So the, little more complex, solution Trevor proposed suddenly looks a lot more appealing! :-D
>>>> This is fld "IN" (your snippet):
>>>> tell application "System Events"
>>>> set activeApp to name of first application process whose frontmost is true
>>>> return activeApp
>>>> end tell
>>>> on mouseUp
>>>> do fld "IN" as "applescript"
>>>> put the result into fld "OUT"
>>>> end mouseUp
>>>> yields in fld "OUT":
>>>> "Livecode-Community" or
>>>> "LiveCode-Indy" or
> Klaus Major
> klaus at major-k.de
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode