/*	ScriptMenu.h                                 J. Strout, 1/27/97**									http://www.strout.net/****	This file defines a "Scripts" menu.  It looks for compiled scripts**	(NOT applications or droplets) in a folder called "Scripts" under**	the application folder, builds a menu of them, and executes the**	selected one.  Very simple and cool, no?****	NOTE:	to use this module, you need to include "AppleScriptLib"**			in your project; otherwise, the OSA calls will not link.*/#ifndef __SCRIPTMENU_H#define __SCRIPTMENU_H#ifdef __cplusplusextern "C" {#endif// call this usually just once, after initialize your menu bar:OSErr BuildScriptMenu( const short menuID );// call these whenever you need to enable/disable the script menu:void EnableScriptMenu();void DisableScriptMenu();// when you detect a selection in the script menu, call this:OSErr HandleScriptMenuSelection( const short num );#ifdef __cplusplus}#endif#endif
