From: Phil D. <de...@gm...> - 2010-09-15 13:30:58
|
I'm not a Mac guy so don't know the exact process on a Mac, but rails will use the first argument on the command line as a save file to load, for example: java -jar rails-1.4.jar 1830_20100915_1320_Phil.rails on windows will load straight into rails from the savefile '1830_20100915_1320_Phil.rails' from the rails directory. What you will need to therefore do (for whatever OS you use) is associate .rails files with the binary to launch the Java runtime (java.exe in the case of windows) followed by '-jar' then followed by the full path to the rails-1.4.jar, the have your OS put the full path to the .rails file you just clicked on as the next argument. Then it will work. Annoyingly you will have to update this file association for each new revision of rails but that's a reasonably simple process where Windows is concerned. I might fire up the drastically out of date MacMini tonight and see if I can work out how to do it on that but hopefully this info will help a more Macsavvy person to find the correct process :) Phil On 15 September 2010 13:52, Bob Archer <bo...@ar...> wrote: > I'm sure there is a way, I just don't know it... I've never developed in > java. > It would be really nice if a Mac app packager could be made so you could do > this. From what I am reading it isn't too difficult to do... and there are > some Ant tasks available to make it easy. Perhaps I can look at it this > weekend. What OS is rails built on? > I agree... if at least you could load a new game without closing and > re-opening the app it would be nice. I currently have 4 games in progress so > it is a bit awkward now. > BOb > > On Wed, Sep 15, 2010 at 1:07 AM, Chris Shaffer <chr...@gm...> > wrote: >> >> Sorry, you can't do that. The rails.command file just opens rails in the >> correct directory, saving time navigating to find things. >> >> Best I can tell, you can't do it on Windows or Linux either. This, >> combined with being unable to close a game without closing the entire >> program, is the single biggest usability problem with Rails. >> >> -- >> Chris >> >> Please consider the environment before printing this e-mail. >> >> >> On Tue, Sep 14, 2010 at 8:34 PM, Bob Archer <bo...@ar...> wrote: >>> >>> Chris, >>> Thanks for the help. I'm not sure I 100% get what you are saying. Take >>> the rails.command file and set it to open with terminal. >>> Now, I still can't association .rails files with this command file. >>> What am I missing? >>> Just to clarify, I want to be able to double-click on the saved game >>> file, the 18xx_Time_Name.rails file and have it opened with rails rather >>> than have to use the load command every time. >>> BOb >>> On Tue, Sep 14, 2010 at 8:18 PM, Chris Shaffer <chr...@gm...> >>> wrote: >>>> >>>> Rename the file with a .command extension. Open file properties using >>>> apple-i. Set to Open with "terminal." >>>> >>>> You also need to set the working directory in the file itself. I've >>>> attached an example file for your use. Replace username and edit the path >>>> as needed. >>>> >>>> -- >>>> Chris >>>> >>>> Please consider the environment before printing this e-mail. >>>> >>>> >>>> On Tue, Sep 14, 2010 at 4:41 PM, Bob Archer <bo...@ar...> wrote: >>>>> >>>>> Does anyone know how I can set up my Mac so when I double-click a >>>>> .rails file it will open in rails. Since .jar isn't an executable it won't >>>>> let me associate the files with it. >>>>> BOb >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Start uncovering the many advantages of virtual appliances >>>>> and start using them to simplify application deployment and >>>>> accelerate your shift to cloud computing. >>>>> http://p.sf.net/sfu/novell-sfdev2dev >>>>> _______________________________________________ >>>>> Rails-users mailing list >>>>> Rai...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rails-users >>>>> >>>> >>> >> > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Rails-users mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-users > > |