Script does not return focus to FileMaker window
Script does not return focus to FileMaker window
- Subject: Script does not return focus to FileMaker window
- From: Joe <email@hidden>
- Date: Mon, 5 Jan 2009 09:11:40 -0800
Sorry if this is a duplicate post. I didn't see my first one show up.
I have an AppleScript that copies email data to a FileMaker db. When
the script finishes it leaves FileMaker as the frontmost application,
but the database window is not the object of focus. In order to
interact with FileMaker at all requires the user to click on the db
window to return focus to it. (FileMaker won't even respond to Command-
Q until focus is returned to the window).
The script is an external AppleScript that is run from within FMP
using "run script"
The end of the FileMaker part of the script tells FileMaker to show
the layout I want…
tell application "FileMaker Pro"
go to layout "Main Menu" of database DBsName
end tell
The final line of the script makes certain the display dialog step is
frontmost.
tell me to activate
tell me to display dialog "Done" buttons {"•"} giving up after 5
At the end, FileMaker shows as the front application, but the db
window title bar is grayed out requiring a click to shift focus to the
window.
Any thoughts on how to get focus back to the FileMaker window with
AppleScript?
Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden