Handler format ...

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:

  1. Save the script as a stay-open bundle-based applet in Script Editor.

  2. Right-click the applet file in Finder and choose ‘Show Package Contents’.

  3. 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.