[GRASSLIST:6694] Re: Mac OS X 10.4 and GRASS 6

Lorenzo Moretti lorenzo.moretti at bologna.enea.it
Mon May 2 05:34:19 EDT 2005


Hi Tim

>Has anyone had any luck getting GRASS 6.1 to run 
>under Tiger?  I've reinstalled everything 
>following the upgrade (archive and install) but 
>haven't been able to get the 19 April CVS binary 
>working.  I can go into the .app package and 
>open the startup screen (where you choose the 
>location), but it fails to launch GRASS from 
>there (i.e. no GRASS prompt in the shell).  Any 
>tips or just wait for an update?  
>Thanks.
>
>Tim
>

I have not Tiger but you test this change.

Exit from Grass and X11.
You open grass61cvs (Ctrl+Mouse clic and Show Package Contents)
Make a copy of "grass61cvs.app/Contents/Resources/Scripts/script.scpt" file.
Double clic on 
grass61cvs.app/Contents/Resources/Scripts/script.scpt 
file and it is opened from Script Editor 
application.
You see the source of Apple Script code. At the bottom you see:

	if uscita = "uscita" then
		set the totale to unixpathgrass & 
"Contents/Resources/" & grassversionreal & "/" & 
grass & mode
		tell application "X11"
			activate
			if osxaqua = "1" then
				set results to do 
shell script "cd ~; DISPLAY=:0.0; export DISPLAY; 
PATH=$PATH:/usr/bin; export PATH; osxaqua=" & 
osxaqua & "; export osxaqua; /usr/X11R6/bin/xterm 
-geometry 80x30 -e " & totale & " > /dev/null 
2>&1 &"
			else
				set results to do 
shell script "cd ~; DISPLAY=:0.0; export DISPLAY; 
PATH=$PATH:/usr/bin; export PATH;" & 
"/usr/X11R6/bin/xterm -geometry 80x30 -e " & 
totale & " > /dev/null 2>&1 &"
			end if
		end tell
		quit
	end if
end «event coVScliI»


property ASDScriptUniqueIdentifier : "script.applescript"

You add 3 rows (after the second row):

	if uscita = "uscita" then
		set the totale to unixpathgrass & 
"Contents/Resources/" & grassversionreal & "/" & 
grass & mode
		tell application "Finder"
			launch application "X11"
		end tell
		tell application "X11"
			activate
			if osxaqua = "1" then
				set results to do 
shell script "cd ~; DISPLAY=:0.0; export DISPLAY; 
PATH=$PATH:/usr/bin; export PATH; osxaqua=" & 
osxaqua & "; export osxaqua; /usr/X11R6/bin/xterm 
-geometry 80x30 -e " & totale & " > /dev/null 
2>&1 &"
			else
				set results to do 
shell script "cd ~; DISPLAY=:0.0; export DISPLAY; 
PATH=$PATH:/usr/bin; export PATH;" & 
"/usr/X11R6/bin/xterm -geometry 80x30 -e " & 
totale & " > /dev/null 2>&1 &"
			end if
		end tell
		quit
	end if
end «event coVScliI»


property ASDScriptUniqueIdentifier : "script.applescript"

Save this file.

Close X11 and Grass.

Double clic on grass61cvs application and press START.

If this change is OK it's also good for grass60 application.

Bye



-- 
________________________________________________________________________
||      Lorenzo Moretti        e-mail: lorenzo.moretti at bologna.enea.it     
||/|/|  ENEA prot/idr          Web: http://wwwamb.bologna.enea.it/    
||   |  via Don Fiammelli, 2   FTP: ftp://ftpamb.bologna.enea.it/ (ris.)
~~~~~~  40128 BOLOGNA - ITALY  Ph: +39-0516098086  Fax: +39-0516098131
________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20050502/86ad76a9/attachment.html


More information about the grass-user mailing list