Code: Select all
if the process "iexplorer.exe" is read then
.....
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
if the process "iexplorer.exe" is read then
.....
Code: Select all
function programs
if the platform is "MacOS" then -- only OSX!
put shell("ps -xcw") into myList
put offset("COMMAND",myList) into myColPos
repeat for each line myLine in myList
put char myColPos to -1 of myLine & cr after myNewList
end repeat
filter myNewList without "(*"
return line 2 to -1 of myNewList
else if the platform is "Win32" then
put line 4 to -1 of shell("tasklist") into myList
// or use the pv command
repeat for each line myLine in myList
put word 1 of myLine & cr after myNewList
end repeat
return line 1 to -2 of myNewList
else
return empty
end if
end programs