AnsweredAssumed Answered

Window resize issue

Question asked by harringg on May 25, 2012
Latest reply on Jul 24, 2012 by james_quiggins

Summary

Window resize issue

Product

FileMaker Pro

Version

12.0 v1

Operating system version

Mac OS X, 10.7.4

Description of the issue

I'm using Alfred 1.2, http://www.alfredapp.com/ and an AppleScript that auto-sizes the window of a given app to full screen (when green maximize button won't fill the screen), and I'm not talking about Lion's full screen, double-arrow in top right of Lion-Ready apps.

When I run the script in any other app, it takes, say a 50% full screen window and formats it to fit 100% of the screen, keeping the Menu bar intact.

Running the script on a FMP 12 window, pushes the window halfway up the screen and the top is un-reachable, it puts it under the Menu.

http://content.screencast.com/users/harringg/folders/supportforums/media/34de97e1-d9b1-408c-a363-f875140c872c/ScreenShot.jpeg

I have to quit FMP once I've run that script to get access to the toolbar.

I'm not asking for any help with the issue, just reporting it, since FMP 12 is the only app that behaves this way when I run this apple script.

on alfred_script(loc)
tell application "Finder"
     set _b to bounds of window of desktop
     set myWidth to item 3 of _b
     set myHeight to item 4 of _b
end tell

set front_app to (path to frontmost application as Unicode text)

if loc contains "t" then
     tell application front_app
          activate
          set bounds of window 1 to {0, 0, myWidth, (myHeight / 2)}
     end tell
else if loc contains "r" then
     tell application front_app
          activate
          set bounds of window 1 to {(myWidth / 2), 0, myWidth, myHeight}
     end tell
else if loc contains "l" then
     tell application front_app
          activate
          set bounds of window 1 to {0, 0, (myWidth / 2), myHeight}
     end tell
else if loc contains "b" then
     tell application front_app
          activate
          set bounds of window 1 to {0, (myHeight / 2), myWidth, myHeight}
     end tell
else
     tell application front_app
          activate
          set bounds of window 1 to {0, 0, myWidth, myHeight}
     end tell
end if
end alfred_script

Outcomes