Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AS Newbie Alert -- Positioning Window

Featured Replies

Hi all,

I've always tried to keep all FMP activity (scripts, etc.) entirely within FMP itself, and plugin- or AS- free. I am however finding more and more situations where it would be desirable to add some automation outside of FMP itself, in the Mac Finder or the Windows OS environments. Especially when I need to automate data exchanges between FMP and other systems (PHP/mySQL solutions for example). I'll probably be asking a bunch of rather newbie questions in the beginning -- so I appreciate your help, and patience.

In this case...

I don't need to resize any of my FMP windows (I do that within FMP), but I'd like to simply position the selected table (window), which I believe can be done by creating an Applescript, and then calling that script with a FM script.

Tech Specs: OSX 10.3.2, FMP 6

All help greatly appreciated.

Also, on side note. Most of my solutions are cross-platform. What's the Windows alternative to AS scripts?

Thanks,

  • Author

Thanks OAM. I'm guessing the syntax for those commands in AS is simple. Could you post it for me?

Also, if I set bounds I'll need to always know the exact size of the window. I was wondering if it's possible to position a window without resizing it -- by for example just indicating an X,Y coordinate for the window's top left corner?

Thanks,

Try:

get bounds window 1

That'll tell you the size and current position of your FileMaker window.

create a global repeating number field with 4 repeats. Let's call it gBounds

-- save window position:

copy bounds of window 1 to boundz

copy boundz to cell "gBounds"

-- restore window position

get data cell "gBounds"

set bounds of window 1 to result

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.