[Sage] Sage custom CSS and portability

too_much green_tea toomuchgreentea at yahoo.com
Mon Sep 4 15:30:51 EDT 2006


Never mind ... I think there may be a problem with the scope of the set variable.
 
-----
Come and visit my 360°
http://360.yahoo.com/toomuchgreentea

----- Original Message ----
From: too_much green_tea <toomuchgreentea at yahoo.com>
To: Sage List <sage at mozdev.org>
Sent: Monday, September 4, 2006 10:56:16 AM
Subject: Re: [Sage] Sage custom CSS and portability

 I'm assuming you're on MS platform (you used "\" in path)?

I haven't used any USB drives yet, so what I can suggest is rather limited ... but I guess it is possible to create a script that automatically store the location of the inserted drive in a system variable. Try the following and see if it works for you.

- create a file with a unique name at the root of the USB drive (e.g. "dijagakejfeijfwiejfi.txt")
- create a script that searches C:\ through Z:\ for that filename
    @echo off
     if exist c:\dijagakejfeijfwiejfi.txt set myUSBlocation=C:
     if exist d:\dijagakejfeijfwiejfi.txt set myUSBlocation=D:
     ...
     if exist z:\dijagakejfeijfwiejfi.txt set myUSBlocation=Z:
- execute the script everytime you insert the drive

You should then be able to use "%myUSBlocation%" in your path.

Or you can simply set the variable "myUSBlocation" manually before running Firefox ... whichever way works best for you. :-)
  
----- 
 
Come and visit my 360° 
http://360.yahoo.com/toomuchgreentea 
 
----- Original Message ---- 
From: Tim Gourley  
To: sage at mozdev.org 
Sent: Friday, September 1, 2006 10:15:30 AM 
Subject: [Sage] Sage custom CSS and portability 
 
Hello, 
 
I've been using Sage for a while now and it is a great application.  The only problem I've had with it is that when I try to use Sage with Firefox Portable 1.5 from my USB thumb drive and I specify a custom style sheet, it puts the full path, including the drive letter.  Since I use this on a couple different computers I cannot rely on the drive letters being the same.  
 
I've tried various combinations of paths such as "stylesheet.css", "..\stylesheet.css", and so on to get it to work, but to no avail.  Does anyone have any thoughts or ideas? 
 
Thanks! 
  
--  
Tim Gourley 
"Where there's a will, there's a beneficiary."  
- The Seventh Doctor (Doctor Who: Time and the Rani)_______________________________________________ 
Sage mailing list 
Sage at mozdev.org 
http://mozdev.org/mailman/listinfo/sage 
 
 
 
 


_______________________________________________
Sage mailing list
Sage at mozdev.org
http://mozdev.org/mailman/listinfo/sage






More information about the Sage mailing list