Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7227 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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...

This topic is 7227 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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