• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Intercepting or preventing a menu choice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Intercepting or preventing a menu choice
      • From: Steve <email@hidden>
  • Prev by Date: Re: Remote Access scripting
  • Next by Date: Re: How to test if a dropped item (on open) is a file or folder
  • Previous by thread: Intercepting or preventing a menu choice
  • Next by thread: Re: Intercepting or preventing a menu choice
  • Index(es):
    • Date
    • Thread