I read the threads, but I'm afraid I'm not very well versed in shell programming and shell scripts. I don't understand how one instructs Maple to use the script produced by the external editor to produce a plot. Suppose one wanted to edit in BBEdit. What would one have to do in BBEdit or OS X to make it all work?
Can anyone explain why the Maple 14 editor is so limited?
Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student
 
                        
                        
                 
            
                
                    
                    
                    
                        I read the threads, but I'm afraid I'm not very well versed in shell programming and shell scripts. I don't understand how one instructs Maple to use the script produced by the external editor to produce a plot. Suppose one wanted to edit in BBEdit. What would one have to do in BBEdit or OS X to make it all work?
Can anyone explain why the Maple 14 editor is so limited?
Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student
 
                        
                        
                 
            
                
                    
                    
                    
                        It's good to know. No further progress here.
 
                        
                        
                 
            
                
                    
                    
                    
                        It's good to know. No further progress here.
 
                        
                        
                 
            
                
                    
                    
                    
                        I chose the second approach. Thanks for helping to remove the clutter from my document.
 
 
                        
                        
                 
            
                
                    
                    
                    
                        I chose the second approach. Thanks for helping to remove the clutter from my document.
 
 
                        
                        
                 
            
                
                    
                    
                    
                        Thank you longrob. It's odd that I seem to be the first with this problem. There is nothing special about my system that I can see.
 
                        
                        
                 
            
                
                    
                    
                    
                        Thank you longrob. It's odd that I seem to be the first with this problem. There is nothing special about my system that I can see.
 
                        
                        
                 
            
                
                    
                    
                    
                        Hi,
I opened four processes in Maple, two of which were in document mode. After executing each of them, or attempting to, I got the "waiting for kernel" message on the fourth. Then I quit Maple. The top results at that point are given below. There seems to be a stray mserver process. I'm afraid I don't know if it was there from the beginning, as I think I misunderstood your directions at first.
I then killed process 977 and started Maple and opened 5 new processes. I then closed the 5th and opened a 6th. At that point the !!! execution button failed to activate and failed to execute the process. I closed that file and opened another with the same result. I did not get another waiting for kernel message or failure to connect to kernel message.
I hope this data helps. If you need something more, I'm at your service. Thanks.
AFTER OPENING MAPLE AND FOUR PROCESSES, INCLUDING TWO IN DOCUMENT MODE
PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
  980 top         12.0%  0:01.56   1    16    26   320K   464K   708K  27.1M 
  979 mserver      0.0%  0:00.19   1    15    46  1.12M  3.34M  3.03M  97.5M
  978 sh           0.0%  0:00.06   1    12    21   116K   848K   660K  83.3M
  977 mserver      0.0%  0:00.08   1    15    43   972K  3.34M  2.45M  97.4M
  976 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  972 AppleSpell   0.0%  0:00.14   1    24    40   692K  2.01M  1.78M  37.4M
  958 loginwindo   0.0%  0:00.37   2   101    98  1.09M  2.93M  3.29M  88.4M
  926 mserver      0.0%  0:00.70   1    15    90  3.69M  3.73M  6.21M   100M
  925 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  924 mserver      0.0%  0:01.80   1    15   136  6.10M  3.81M  8.96M   104M
  923 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  921 mserver      0.0%  0:00.91   1    15    91  3.80M  3.73M  6.43M   100M
  920 sh           0.0%  0:00.06   1    12    21   116K   848K   660K  83.3M
  919 Maple 10     1.1%  2:36.03  35   999   478  77.2M  29.5M  91.6M   607M
  902 bash         0.0%  0:00.04   1    12    18   200K   908K   824K  18.2M
  901 login        0.0%  0:00.05   1    13    37   140K   456K   520K  26.9M 
AFTER QUITTING MAPLE
PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
  983 top         12.3%  0:02.90   1    16    26   312K   464K   700K  27.1M 
  981 BBEdit       0.0%  0:01.99   3    90   186  4.82M  20.1M  13.4M   131M
  977 mserver      0.0%  0:00.08   1    15    43   972K  3.34M  2.45M  97.4M
  976 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  972 AppleSpell   0.0%  0:00.14   1    24    40   692K  2.01M  1.78M  37.4M
  958 loginwindo   0.0%  0:00.37   2   101    98  1.09M  3.13M  3.29M  88.4M
  902 bash         0.0%  0:00.05   1    12    18   204K   908K   824K  18.2M
  901 login        0.0%  0:00.05   1    13    37   140K   456K   520K  26.9M
  900 Terminal     0.7%  1:22.59   3    63   138  1.68M  14.1M  6.02M   117M 
  568 Safari       0.0% 19:08.49  10   208   705  61.5M  37.6M  68.4M   219M 
  564 UniversalA   0.0%  0:14.83   1    56    91   820K  6.42M  2.81M   112M
  562 iCalAlarmS   0.0%  0:00.18   1    59    79   568K  2.13M  2.10M   101M
  561 iTunesHelp   0.0%  0:00.15   1    50    72   360K  3.71M  1.29M  97.4M
  560 SpeechSynt   0.0%  0:07.41   4   164   150  1.29M  3.94M  3.92M   109M
  559 Transport    0.0%  0:00.33   2   108   103   856K  6.22M  2.77M   103M
  558 Palm Deskt   0.7%  4:51.69   1    51    80   816K  8.12M  3.10M   105M 
AFTER REOPENING MAPLE AND OPENING FIVE PROCESSES, QUITTING ONE, OPENING ANOTHER, QUITTING THE LAST, OPENING ANOTHER, QUITTING THE LAST
 PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 1007 top         12.1%  0:09.56   1    16    26   332K   464K   720K  27.1M 
 1006 mserver      0.0%  0:00.13   1    15    54  1.37M  3.95M  3.61M  98.5M
 1005 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  997 mserver      0.0%  0:00.64   1    15    91  3.80M  3.95M  6.43M   100M
  996 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  995 mserver      0.0%  0:01.76   1    15   136  6.10M  4.02M  8.96M   104M
  994 sh           0.0%  0:00.05   1    12    21   116K   848K   660K  83.3M
  993 mserver      0.0%  0:00.69   1    15    90  3.69M  3.95M  6.21M   100M
  992 sh           0.0%  0:00.03   1    12    21   116K   848K   660K  83.3M
  988 mserver      0.0%  0:00.16   1    15    54  1.37M  3.95M  3.61M  98.5M
  987 sh           0.0%  0:00.04   1    12    21   116K   848K   660K  83.3M
  986 Maple 10     2.2%  2:54.86  38   >>>   510   175M  32.0M   186M   628M 
  981 BBEdit       0.0%  0:05.88   3    93   189  5.27M  24.3M  16.3M   135M
  972 AppleSpell   0.0%  0:00.14   1    24    40   692K  2.01M  1.78M  37.4M
  958 loginwindo   0.0%  0:00.37   2   101    98  1.09M  3.13M  3.29M  88.4M
  902 bash         0.0%  0:00.06   1    12    18   208K   908K   828K  18.2M 
AFTER QUITTING MAPLE
 PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 1008 TOP         11.5%  0:02.17   1    16    26   316K   464K  2.20M  27.1M 
  981 BBEdit       0.0%  0:05.89   3    93   189  5.27M  24.3M  16.3M   135M
  972 AppleSpell   0.0%  0:00.14   1    24    40   692K  2.01M  1.78M  37.4M
  958 loginwindo   0.0%  0:00.37   2   101    98  1.09M  3.13M  3.29M  88.4M
  902 bash         0.0%  0:00.07   1    12    18   204K   908K   828K  18.2M
  901 login        0.0%  0:00.05   1    13    37   140K   456K   520K  26.9M
  900 Terminal     1.6%  1:36.15   3    63   138  1.84M  15.8M  6.20M   117M
  568 Safari       0.0% 19:51.06  10   210   712  62.4M  44.3M  74.5M   225M
  564 UniversalA   0.0%  0:19.79   1    56    91   820K  6.93M  2.81M   112M
  562 iCalAlarmS   0.0%  0:00.18   1    59    79   568K  2.64M  2.10M   101M
  561 iTunesHelp   0.0%  0:00.15   1    50    72   360K  4.21M  1.29M  97.4M
  560 SpeechSynt   0.0%  0:07.57   4   164   150  1.29M  4.45M  3.92M   109M
  559 Transport    0.0%  0:00.33   2   108   103   856K  6.73M  2.77M   103M
  558 Palm Deskt   0.8%  4:56.42   1    51    80   816K  8.63M  3.10M   105M
  555 Finder       0.0%  0:03.31   1    87   171  3.21M  24.8M  11.8M   133M
  554 SystemUISe   0.0%  0:07.61   1   176   150  1.72M  15.5M  5.15M   115M 
                        
                        
                 
            
                
                    
                    
                    
                        I tend to have a couple of browser windows open while working in Maple, so perhaps my 1 GB RAM is not quite enough.
                        
                        
                 
            
                
                    
                    
                    
                        I was able to begin typing immediately after scrolling even though no cursor was in evidence. Sorry, I never noticed that before, but I'm glad to know that document mode is still usable. Thanks very much for the help.
I still have an issue with losing the connection to the kernel with three documents open. Has anyone else reported that?
                        
                        
                 
            
                
                    
                    
                    
                        The file manager is a much-needed addition to Maple Primes.
I uploaded a file and was unable to get a live download in either Safari or Internet Explorer. I have OS X 10.3.9.
                        
                        
                 
            
                
                    
                    
                    
                        It seems to be happening in all my worksheets in document mode. Regarding the file I have included, I opened it, scrolled to the bottom and then scrolled up about 2/3 of the way. It took 123 counts of "one thousand one, one thousand two,...." for the cursor to return.
The "Attach" button did not appear at the bottom of this reply, so I wll post it separately, hoping that you can find it under the heading "Reply to Andrews".
                        
                        
                 
            
                
                    
                    
                    
                        Thanks. That worked. I have broken it out into three scripts (in three files) to make it a little easier for the next person to see the sequence. I also replaced the kernelopts(dirsep) with an empty string "". The kernelopts was adding an extra "/" directory separator to my pathway. The scripts are presented below along with diagnostic output, which I mark with ">>".
______________________
file: create-library.mw
-------------------
This script creates a library called "myMapleLib.mla" in the folder "/Users/gary/bin/maple/".
Information provided by Jame McCarron, Maple developer and William Spaetzel, Marketing Engineer, Maplesoft, July 18, 2006. Slightly modified.
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ],""):
printf("Creating a Maple library.");
march( 'create', mla, 1000 ): # see ?march for explanation
>>Creating a Maple library.
Check your final directory to see if it worked.
----------------------------------
----------------------------------
file: create-module.mw 
_______________________________________
This script creates the package "MyMatrices" and checks to see if the package was created.
MyMatrices := module() 
	option package; 
	export selfID; 
	selfID := proc()
		printf("This is package MyMatrices.\n");
	end proc:
end:
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ],""):
libname := mla, libname:
printf(cat("libname=",libname)); # diagnostic
savelib( 'MyMatrices' ):
>>libname=/Users/gary/bin/maple/myMapleLib.mla/Users/gary/bin/maple/>>myMapleLib.mla/Library/Frameworks/Maple.framework/Versions/10/lib
# Check that it worked
march( 'list', mla ); # should get output similar to the following:
[[":-1.m", [2006, 7, 18, 15, 42, 7], 304264, 162], ["MyMatrices.m", [2006, 7, 18, 15, 42, 7], 304128, 136]]:
 >>  [[":-1.m", [2006, 7, 18, 16, 18, 46], 304226, 113], 
 >>    ["MyMatrices.m", [2006, 7, 18, 16, 18, 46], 304128, 98]]
---------------------------------------------
---------------------------------------------
file: test-package.mw
---------------------------------------------
#This script verifies that procedures in the newly created package are accessible.
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ], ""):
libname := mla, libname:
print(libname); # diagnostic.
with( MyMatrices );
selfID();
 >> "/Users/gary/bin/maple/myMapleLib.mla", 
 >>     "/Library/Frameworks/Maple.framework/Versions/10/lib"
                            [selfID]
>>This is package MyMatrices.
------------------------------------------
                        
                        
                 
            
                
                    
                    
                    
                        Thanks. That worked. I have broken it out into three scripts (in three files) to make it a little easier for the next person to see the sequence. I also replaced the kernelopts(dirsep) with an empty string "". The kernelopts was adding an extra "/" directory separator to my pathway. The scripts are presented below along with diagnostic output, which I mark with ">>".
______________________
file: create-library.mw
-------------------
This script creates a library called "myMapleLib.mla" in the folder "/Users/gary/bin/maple/".
Information provided by Jame McCarron, Maple developer and William Spaetzel, Marketing Engineer, Maplesoft, July 18, 2006. Slightly modified.
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ],""):
printf("Creating a Maple library.");
march( 'create', mla, 1000 ): # see ?march for explanation
>>Creating a Maple library.
Check your final directory to see if it worked.
----------------------------------
----------------------------------
file: create-module.mw 
_______________________________________
This script creates the package "MyMatrices" and checks to see if the package was created.
MyMatrices := module() 
	option package; 
	export selfID; 
	selfID := proc()
		printf("This is package MyMatrices.\n");
	end proc:
end:
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ],""):
libname := mla, libname:
printf(cat("libname=",libname)); # diagnostic
savelib( 'MyMatrices' ):
>>libname=/Users/gary/bin/maple/myMapleLib.mla/Users/gary/bin/maple/>>myMapleLib.mla/Library/Frameworks/Maple.framework/Versions/10/lib
# Check that it worked
march( 'list', mla ); # should get output similar to the following:
[[":-1.m", [2006, 7, 18, 15, 42, 7], 304264, 162], ["MyMatrices.m", [2006, 7, 18, 15, 42, 7], 304128, 136]]:
 >>  [[":-1.m", [2006, 7, 18, 16, 18, 46], 304226, 113], 
 >>    ["MyMatrices.m", [2006, 7, 18, 16, 18, 46], 304128, 98]]
---------------------------------------------
---------------------------------------------
file: test-package.mw
---------------------------------------------
#This script verifies that procedures in the newly created package are accessible.
mylibrary := "/Users/gary/bin/maple/":
mla := StringTools:-Join( [ mylibrary, "myMapleLib.mla" ], ""):
libname := mla, libname:
print(libname); # diagnostic.
with( MyMatrices );
selfID();
 >> "/Users/gary/bin/maple/myMapleLib.mla", 
 >>     "/Library/Frameworks/Maple.framework/Versions/10/lib"
                            [selfID]
>>This is package MyMatrices.
------------------------------------------