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

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

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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)

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