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.

Adding a "timebomb" with Applescript

Featured Replies

Hi

I've added the following script to some databases I administer inhouse that request a password after a specific date has passed. This script is set as the startup script (using "Perform AppleScript" in Scriptmaker) - each month I'll change the expiration date so users should never see it.

Bearing in mind that I'm the only one with the admin password, access to document prefs and scriptmaker is there anyway users can bypass this if they don't have the admin password.

If anyone has a better way of writing the script I'd be interested in that as well

Ta!!

----------------------------------

property expiration :o date "January 11, 2005"

property mypassword : "passwordtext"

on run

try

set currentDate to (current date)

tell application "Finder"

if expiration > currentDate then

tell application "FileMaker Pro"

activate

end tell

else

set the_password to text returned of (display dialog "Enter the password" buttons {"OK"} default answer "" default button {"OK"})

if the_password is equal to mypassword then

tell application "FileMaker Pro"

activate

end tell

else

tell application "FileMaker Pro"

quit

end tell

display dialog "Sorry, that is incorrect - FileMaker is quitting now" buttons {"OK"} default button "OK"

end if

end if

end tell

end try

end run

  • 1 month later...

I'm assuming that you'd designate it under File > File Options... > Open/Close tab > Perform Script

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.