Jump to content

required file name not in Specify drop box


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

Recommended Posts

Problem - trying to create a SCript which will automate opening up a file

- however, when I put the Go To Layout command in box & then go to Specify drop-down box, the file I am looking for is not there - both files are in the same folder & relationship has been created between them.

Thanks in acticipation

Sean O'D

Link to comment
Share on other sites

This is normal. The "Go to Layout" step will only go to layouts in the file in which the script is written.

Write a "Go to Layout" script in the file you want to open.

Now, go back to the original file and amend your script deleting the "Go to Layout" step and add the "Perform Script" step specifying the new external sub-script. Now when you run the first script it will open the other file and call the external sub-script taking you to your desired layout.

Easey peasey!

Link to comment
Share on other sites

The magic ingredient that makes the process 100% reliable is the "Refresh Window [bring to front]" script step. Put it at the bottom of the opening script in the destination file.

While you are there you might as well do the job right and set up th window exactly the way you want it to appear. My file-switching scripts look like this:

code:


Allow User Abort [off]

Freeze Window

Go to Layout [layout name]

Toggle Status Bar [hide]

Toggle Text Ruler [hide]

Scroll Window [home]

Set Zoom Level [100%]

Allow Toolbars [off] -- FMP 5.5 only

Toggle Window [maximise]

Refresh Window [bring to front]


Note *not* to select the "refresh" option in the "Go to layout" step: freeze the window, get it set up the way you want, then refresh the whole thing and bring it to the front. You can choose to show the status bar and text ruler if you like, and can even lock the status bar.

Call this script externally, rather than using the "Open []" step. This is guaranteed to work every time, and produces the most seemless result possible.

The script in the first file looks like this:

code:


Allow User Abort [off]

Freeze Window

Perform Script [external, opening script above]


[ November 19, 2001: Message edited by: Vaughan ]

Link to comment
Share on other sites

This topic is 7270 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
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.