4 Replies Latest reply on Jul 24, 2012 2:16 PM by james_quiggins

    Window resize issue

    harringg

      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

        • 1. Re: Window resize issue
          solventerprises

          Why use Alfred and not create a script to Maxamize or Resize the window?

          • 2. Re: Window resize issue
            harringg

            Because most apps don't allow that ability built-in (script to Max/Resize), so I use that AppleScript in Alfred.  Alfred isn't doing anything other that letting me run an AppleScript script via a keyboard shortcut with paramaters, and other than that has no involvement in the situation.  I 

            It's just resizing an application's window in the Finder, and doesn't do that (push it under the menu bar) in anyother program I run the script in so I thought I'd mention it here in case the devs of FMP want to see if it's something unique to FMP.

            I use that script when working in Photoshop, Safari, Bento, and all other apps I use with the only net effect is it makes the foreground window fit my monitor corner to corner.  In FMP 12 it pushes it under the menu.

            OR, is it a case of FMP is not being compatible with AppleScript.

            Other than that, I'm not concerned about it.

            If you want to share a script for resize that runs inside of FMP that would be great.

            I modified the Alfred script to be a standalone AppleScript and saved it as a Script Bundle and ran it from the AppleScript menu in the Finder and got the same resize results (FMP pushed under the Menu), while other apps worked fine.  Again the only reason I use Alfred in this equation is so that I don't have to mouse up to the AppleScript menu or mouse to the green + in the app's window, just a few keystokes and it's done.

             

            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)

             

            tell application front_app

            activate

            set bounds of window 1 to {0, 0, myWidth, myHeight}

            end tell

            • 3. Re: Window resize issue
              james_quiggins

              Hello Grant Harrington:

              Thank you for posting.

              I apologize for the delay in response.  I have forwarded your post and comments to our Development and Testing department. I will let you know if they need any additional information. 

              TSwildcat,

              FileMaker Inc.

              • 4. Re: Window resize issue
                james_quiggins

                Hello Grant Harrington:

                I received some feedback from Development and Testing. A couple things they would like to know. 

                Also are you using Alfred with the Power Pack?

                Do you have more than one monitor hooked up to your machine?

                TSwildcat,

                FileMaker Inc.