3 Replies Latest reply on Feb 7, 2011 9:15 AM by philmodjunk

    Getting back to front tab

    DomMolloy_1

      Title

      Getting back to front tab

      Post

      I have a script that needs to run whenever someone change to a different tab but I need to make sure I get back to the selected tab as opposed to the default tab. 

        • 1. Re: Getting back to front tab
          philmodjunk

          In layout mode, you can select each such tab and use the inspector to give it a unique object name using the name box at the top of the position tab. Then you can use the go to object script step at the end of your script to select the tab you want selected when the script ends.

          • 2. Re: Getting back to front tab
            DomMolloy_1

            Wow you are fast - thanks! - did what you suggested now this happens:

            Used tabs and running a script when someone selects a different tab. The script accesses a different layout and I want to be able to return to the original layout and to the selected tab - not the default tab. 
            All tabs have object names which are captured into a global variable when the script runs (triggered with OnObjectModify for the tab). The script access another layout and then returns to the layout with the tabs. I use go to object to move to the front tab captured in the global variable. All of this works but the script drops into an endless loop as the got to object seems to be firing the OnObjectModify trigger. 
            Suggestions?

            • 3. Re: Getting back to front tab
              philmodjunk

              You appear to have two threads on the same issue. See my response to your other post for an answer.