pmda Posted October 4, 2006 Posted October 4, 2006 Hi, Is it possible to write scripts that are executed once a specifc user has opened an FM6 file. I'm thinking of a script that will execute a zoom-to command for a specific user whose particular screen resolution will otherwise make the file hard to read? PMDA
John Mark Osborne Posted October 4, 2006 Posted October 4, 2006 Certainly. You can create a script that performs on opening of the file via File Options. In the script, you can use IF script steps to check the group they belong to using the Status(CurrentGroups) function. This function returns all the groups someone belongs to so you will have to use PatternCount to check for a group name.
pmda Posted October 9, 2006 Author Posted October 9, 2006 Hi. Thanks for your reply. I can't see how you can do this on FM6. The only thing I can see is the Edit > Preferences > Document option..which allows you to run a script on opening the document but doesn't let you assign different scripts to different passwords. Regards Paul MacD
xochi Posted October 9, 2006 Posted October 9, 2006 use a script which checks the current account name and runs the right script based on that value, e.g. If Get(AccountName)= "joe" Perform script X else if get(accountName) = "sarah" perform script y end if (Apologies if I have the "Get()" function wrong-- I don't remember what it was called in FM6)
Recommended Posts
This topic is 6621 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