Re: Problem creating a shorcut

2008-05-16 Thread Tim Golden
Duncan Booth wrote: It's not too hard to get the required command line from the registry: import _winreg print _winreg.QueryValue(_winreg.HKEY_CLASSES_ROOT, 'FirefoxURL\shell\open\command') and of course it throws an exception if firefox isn't installed. Then just replace %1 with the url t

Re: Problem creating a shorcut

2008-05-16 Thread Duncan Booth
Tim Golden <[EMAIL PROTECTED]> wrote: >> 3) You assume, that Firefox is always installed at C:\Program >> Files\Mozilla Firefox\firefox.exe >> However the path largely differs from system to system. > > This is broadly true. However, it's fairly clear from the > phrase "the user's desktop" that

Re: Problem creating a shorcut

2008-05-16 Thread Tim Golden
Mike Driscoll wrote: Ah. I was unaware of the Arguments parameter. That works quite well. Where does one find this information anyway? I think I found mine from bits and pieces scattered in various tutorials. The canonical place would be: http://msdn.microsoft.com/en-us/library/bb774950(VS.85)

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 8:09 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > On May 15, 2:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > >> Mike Driscoll wrote: > >>> Hi, > >>> I've had this niggling issue from time to time. I want to create a > >>> shortcut on the user's desktop to a web

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 15, 8:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 15 May 2008 12:13:56 -0300, Mike Driscoll <[EMAIL PROTECTED]>   > escribió: > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the user's desktop to a website that specifically loads >

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 1:51 am, Chris <[EMAIL PROTECTED]> wrote: > On May 15, 5:13 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the user's desktop to a website that specifically loads > > Firefox even if Fire

Re: Problem creating a shorcut

2008-05-16 Thread Mike Driscoll
On May 16, 5:44 am, Wolfgang Draxinger <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > Hi, > > > I've had this niggling issue from time to time. I want to > > create a shortcut on the user's desktop to a website that > > specifically loads Firefox even if Firefox is not the default > > browse

Re: Problem creating a shorcut

2008-05-16 Thread Larry Bates
Mike Driscoll wrote: On May 15, 2:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I u

Re: Problem creating a shorcut

2008-05-16 Thread Tim Golden
Wolfgang Draxinger wrote: 1) you should not hardcode the backslashes ('\'), instead use os.sep for it. With respect, the OP is creating a Windows desktop shortcut. Unless Microsoft suddenly decide to change their use of the backslash, I suggest that this is a needless generalisation. 3) You

Re: Problem creating a shorcut

2008-05-16 Thread Tim Golden
Wolfgang Draxinger wrote: 1) you should not hardcode the backslashes ('\'), instead use os.sep for it. With respect, the OP is creating a Windows desktop shortcut. Unless Microsoft suddenly decide to change their use of the backslash, I suggest that this is a needless generalisation. 3) You

Re: Problem creating a shorcut

2008-05-16 Thread Wolfgang Draxinger
Mike Driscoll wrote: > Hi, > > I've had this niggling issue from time to time. I want to > create a shortcut on the user's desktop to a website that > specifically loads Firefox even if Firefox is not the default > browser. > > I usually use COM as it allows very specific settings of the > short

Re: Problem creating a shorcut

2008-05-15 Thread Chris
On May 15, 5:13 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > Hi, > > I've had this niggling issue from time to time. I want to create a > shortcut on the user's desktop to a website that specifically loads > Firefox even if Firefox is not the default browser. > > I usually use COM as it allows ve

Re: Problem creating a shorcut

2008-05-15 Thread Gabriel Genellina
En Thu, 15 May 2008 12:13:56 -0300, Mike Driscoll <[EMAIL PROTECTED]> escribió: I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it al

Re: Problem creating a shorcut

2008-05-15 Thread Mike Driscoll
On May 15, 2:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > Hi, > > > I've had this niggling issue from time to time. I want to create a > > shortcut on the user's desktop to a website that specifically loads > > Firefox even if Firefox is not the default browser. > > > I

Re: Problem creating a shorcut

2008-05-15 Thread Larry Bates
Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the