Hi,
Just curious … I didn’t want to try it myself !
A script can be executed in background by a launcher or in foreground as an application. Can an idle handler be launched and runned in background ? If this is possible how can I then interrupt the execution of the handler ?
Regards.
Robert Lespérance
Simplest solution:
Save the script as a stay-open bundle-based applet in Script Editor.
Right-click the applet file in Finder and choose ‘Show Package Contents’.
Open Contents/Info.plist in TextEdit and add the following lines immediately after the tag:
LSUIElement
The applet will now run in the background (i.e. no menubar or Dock icon). To quit it, send it a ‘quit’ command from another AppleScript.