Thursday, December 14, 2017

#1 2011-05-23 07:54:36 am

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 43
Website

problem with idle handler

Hello,

I have problem with idle handler… My application displays some info on the virtual memory and allows to puge the inactive memory with a button. Without idle handler connected, no problem but with the idle handler, the command blocks… but if I click on the mouse button, the command ends! ???

Applescript:


on idle theObject
   readInfoMemoryUsage()
   return 5
end idle

on clicked theObject
   if name of theObject is "purgeMemory" then
       do shell script "purge"
   end if
end clicked

on readInfoMemoryUsage()
   -- code for display the info
end readInfoMemoryUsage

Sorry for my bad english...

Last edited by Titanium (2011-05-23 07:55:03 am)


iMac 27" 3,4 Ghz - macOS High Sierra
https://www.titanium-software.fr

Offline

 

#2 2011-05-23 01:56:49 pm

Titanium
Member
From:: ~/Desktop
Registered: 2005-08-22
Posts: 43
Website

Re: problem with idle handler

The problem is perhaps the "purge" command, because another command doesn't block... hmm


iMac 27" 3,4 Ghz - macOS High Sierra
https://www.titanium-software.fr

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)