mindtpi99 Posted December 14, 2004 Posted December 14, 2004 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 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
Bagel Posted February 8, 2005 Posted February 8, 2005 I'm assuming that you'd designate it under File > File Options... > Open/Close tab > Perform Script
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now