G’day scripters
In my main App, I’m trying to stop it working when any one of two other ASObC apps are running.
I’m testing for their processes, but the code doesn’t seem to want to work, and ‘sneaks’ past the trapping, saying ‘4’ all the time.
I’ve used a separate Applescript to verify that at least one of the Apps tests for ‘true’.
Also, the line my runningLoopInsertBottomText() works
No errors are occurring.
What am I doing wrong, please?
Regards
Santa
property mailManagerDelay : 4
on runningLoopInitializer() ShanesFord's fordEvent() my performSelector:"runningLoop:" withObject:(missing value) afterDelay:mailManagerDelay end runningLoopInitializer
on runningLoop:{} try set p to 1 copy (current date) to my actualDate set p to 1.03 set my resetSelector to false set p to 1.04 try set p to 1.16 tell application "System Events" set my appsAreRunning to (exists process "Acrobat Printing List") or (exists process "Mail Manager ftp Folders Setter") end tell set p to 1.17 if my appsAreRunning then set p to 1.18 set my mailManagerDelay to 30 my runningLoopInsertBottomText() my runningLoopInitializer() end if on error errmsg tell application "System Events" to display dialog errmsg end try set my mailManagerDelay to 4 say 4 —< keeps on saying <Code> # my runningLoopInitializer() end runningLoop:
|