I should add this: in the Data Viewer, Get ( WindowName ) shows the correct window title. However, if the script sets a variable to Get ( WindowName ) , it'll always show the name of the frontmost window instead.
Some Voodoo tricks may help. What, if you add some of those tasks in the script right after Get (WindowName)
- Pause ( 0,2 seconds )
I am able to replicate the issue with FileMaker Pro Advanced 14.0.1 under Windows 7. This fails using either your method of calling a script that contains Close Window [Current Window] or executing the single script step Close Window [Current Window]. Using Pause, Commit Records or Refresh Window to precede the Close Window script step has no effect.
I can confirm the issue does not occur under Mac OS X 10.10.4.
I have sent your posts along with my findings to our Development and Testing departments for review. When I receive any feedback, I will let you know.
An entry in the Known Bugs List has been linked to this Issue Report. Any Comments/Questions/Suggested Corrections should be posted here or in a new thread. Please do not post such comments to the Known Bugs List thread.
This issue has been addressed in FileMaker Pro 16.