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.

getting an applescript that includes FM to work with Mail rules

Featured Replies

I am trying to debug an applescript that I would like to work automatically with Mail rules. I have a manual version of the script that works perfectly. So would anyone know why in the following script

tell application "FileMaker Pro Advanced"

	activate

	say "FileMaker opened"

	if exists database ¬

		"•_reservations_Petit_Globe" then

		

		say "file opened"

		show database "•_reservations_Petit_Globe"

	else

		

		getURL "FMP7://[email protected]/•_reservations_Petit_Globe"

		

		delay 10

		say "file opened"

	end if

	

	show layout "import"

	

	say "layout opened"

	

	try

		delete every record

	end try

	

	say "deleted"

end tell

this works perfectly when summoned manually but if it is a Mail rule it will only bring the file to the front if it is already opened, but will not open it if it is closed.

This is only part of a larger script but it where it gets stuck for the moment. The "say" lines are just to help me debug it.

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.