Re: R?©p. : Apple - About Apple - Mailing Lists
Re: R?©p. : Apple - About Apple - Mailing Lists
- Subject: Re: R?©p. : Apple - About Apple - Mailing Lists
- From: webguide <email@hidden>
- Date: Sun, 27 Oct 2002 08:07:20 +1100
G'day Frangois
>
Could someone please tell me why this simple script, which changes the color
>
of the text in a FileMaker field, does not work when inserted into a
>
FileMaker + Perform AppleScript ; command (whether it be in directly in the
>
+ Script text ; window or in a + Value field ;):
>
>
tell application "FileMaker Pro"
>
activate
>
go to cell "cell name"
>
do menu menu item "Select All" of menu "Edit"
>
do menu menu item 210 of menu "Text Color" of menu "Format"
>
end tell
>
>
The script works just fine when run from + AppleScript Editor ;, but when
>
transferred to FileMaker 6, I get the following error message:
It's because FMP can't handle more than 1 menu event at once.
Because you're calling the script from a script (essentially the script
menu), FMP is already busy as far as menus are concerned. It will wait and
wait but eventually will time out because it's waiting for itself to finish
- which it can't. Think of it as a recursive event.
Cheers
kim
_______________________________________________
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.