source: branches/properties/lib/macros/demo__open_windows.amc

Last change on this file was 17364, checked in by westram, 6 years ago
  • updated example macros in ARBHOME/lib/macros
    • fixed broken identifiers
    • deleted useless ones (replamb+test)
    • renamed rest (prefix demo__)
    • added comments
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1#!/usr/bin/perl -w
2use lib "$ENV{'ARBHOME'}/lib/";
3use ARB;
4
5$gb_main = ARB::open(":","r");
6if (! $gb_main ) {
7    $error = ARB::await_error();
8    print ("Error: $error\n");
9    exit 0;
10}
11
12# example macro: open a bunch of windows
13my $start_weblinks = 0;
14
15BIO::remote_action($gb_main,"ARB_NT","save_all_as");
16BIO::remote_action($gb_main,"ARB_NT","optimize_db");
17BIO::remote_action($gb_main,"ARB_NT","import_seq");
18BIO::remote_action($gb_main,'ARB_NT','Import sequences using Readseq (slow) ...');
19BIO::remote_action($gb_main,"ARB_NT","export_to_ARB");
20BIO::remote_action($gb_main,"ARB_NT","export_seqs");
21BIO::remote_action($gb_main,"ARB_NT","export_nds");
22BIO::remote_action($gb_main,'ARB_NT','Export sequences to foreign format (Readseq) ...');
23BIO::remote_action($gb_main,"ARB_NT","print_tree");
24if ($start_weblinks!=0) {
25  BIO::remote_action($gb_main,'ARB_NT','mailing_list');
26  BIO::remote_action($gb_main,"ARB_NT","bug_report");
27}
28BIO::remote_action($gb_main,"ARB_NT","version_info");
29BIO::remote_action($gb_main,"ARB_NT","HELP/CLOSE");
30ARB::close($gb_main);
Note: See TracBrowser for help on using the repository browser.