Re: Intercepting or preventing a menu choice
Re: Intercepting or preventing a menu choice
- Subject: Re: Intercepting or preventing a menu choice
- From: JJ <email@hidden>
- Date: Wed, 03 Jul 2002 19:21:07 +0200
>
I have a face span application that works as a floating palette in Xpress
>
4.11. It flight-checks the current document based on company guidelines and
>
works perfectly.
>
>
>
However, there's currently no system in place that makes a user run it. They
>
can close documents or print them without doing the flight check.
>
>
An ideal solution would be either to have the actions intercepted (probably
>
too system-level for AppleScript to intercept) or to disable the Close,
>
Print and Save menu items until the Flight Check button has been pushed. I
>
found an command in Akua Sweets that I thought would do this, but I can't
>
get it to work (edit menu "File" at "Close" without enabling - doesn't
>
produce an error, but doesn't do anything.)
>
>
If anyone is aware of a way I can achieve this, can you let me know? Either
>
disabling & re-enabling, intercepting or some other way?
>
>
Thanks,
>
>
Steve
Hi, Steve, all...
The proper syntax to disable a menu is, according to the dictionary...
____________
edit menu "string" setting the state of {"list_of_strings"} with enabling
____________
Some time ago I did some tests enabling/disabling menus with Quark, and I
remember that there were some problem... It worked fine, but the "disable"
status seemed a "mask" and, if you choose the menu it recovered its original
status (enabled), but _seemed_ disable... (I think :-)
Luck!
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.