• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Creating Simple Scripts > Using External Scripts

Using External Scripts

In “Combining sub-scripts” we ran scripts from inside a master script. However, all of the sub-scripts we used were in the same file as the master script. Scripting also allows you to run scripts in other files. Doing this allows you to access data from a second file while working in the first database. Using a script to switch to another file is much simpler than selecting the file from the window menu, then choosing a layout. If the second file is not already open, the script will open it and then run the external script.

In this example, we create a master script that switches from the Project file (where sales data is maintained) to the Customer layout in the Customer file (where customer data is kept). You might use this script to transfer contact information from a new customer's invoice in the sales file, and add it to your customer database.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint