get the list of open applications and windows ?

Ludovic THEBAULT ludovic.thebault at
Wed Jul 24 01:25:01 EDT 2002

in <D5DC80BE-9CF8-11D6-AC4D-0003937A97B8 at>:
>Here is an AppleScript to list all running applications:
>tell application "Finder"
>	set procList to the processes
>	set procNames to ""
>	repeat with p in procList
>		set procNames to procNames & the name of p & return
>	end repeat
>	return procNames
>end tell

Thanks, but doesn't work with me (on macOS X). But works in the
applescript editor.

I've put the script in a fld called "Scriptmac"
In msg box, the script :
do fld "scriptmac" as applescript

return "Compiler error"

More information about the Use-livecode mailing list