[R-SIG-Mac] making R64 the default gui

David Winsemius dwinsemius at comcast.net
Sun Feb 7 21:15:42 CET 2010


On Feb 7, 2010, at 1:39 PM, Airey, David C wrote:

> Dear list,
>
> I have a bit more RAM now and want to make R64 the default GUI.
>
> What is the best way to do this?

I usually dragged my files to the Dock icon.

>
> The simplest way outside the terminal is to get info on a file and  
> make an application the default for a particular extension, like .r  
> or .rdata, etc. But for some reason this doesn't work with the R.app  
> and R64.app distributed. R64 doesn't stick, and reverts to R in the  
> Get Info window.
>
> Can someone (1) explain this behavior, and (2) provide alternative  
> instructions?

I can reproduce the problem in the sense that I changed the file  
association for .r files to R64.app and it keeps going back to R.app.  
I think it will require editing the file associations database. I  
wasn't sure how to do that but here's a link to some ideas about using  
lsregister. It may be a bit out of date since it appears to have been  
applied to OSX 10.3.

I got what appear to be favorable results by:

a) moving all the old and undesired R_x.app GUI's out of the  
Applications folder and ...
b) running this script from the Apple Script editor:

(*
rebuildLaunchServicesDB.scpt
Locates the lsregister command regardless of OS version, then tells it  
to rebuild the Launch Services Database for all applications in the  
canonical Applications folder
Paul Henegan
bleulyon at mac.com
20.Aug.2008
*)

set theCommand to (do shell script "locate lsregister")
set theArguments to " -kill -r -f -domain local -domain system -domain  
user"
set thePath to " /Applications"--edit this as needed
set theScript to theCommand & theArguments & thePath
do shell script theScript

-------end script-----------

The R64 assignment seems to be "sticking."
>
> Thank you.
>
> -Dave
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-SIG-Mac mailing list