October 4, 200619 yr 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
October 4, 200619 yr 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.
October 9, 200619 yr Author 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
October 9, 200619 yr 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)
Create an account or sign in to comment