DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Opening Templates/Using Templates  (Read 5,578 times)

pratty

  • Participant
  • Joined in 2006
  • *
  • Posts: 2
Opening Templates/Using Templates
« on: January 27, 2013, 04:48 PM »
I use FARR all the time to open almost everything I open (because I find it brilliant), but am hitting problems with templates.  Is there a way to make templates create a new document when selected in FARR (i.e. the default action in windows explorer).  Currently FARR opens the template for editing (like the 'open' command on the shell context menu.  I am using libreoffice, but I don't think that is relevant.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Opening Templates/Using Templates
« Reply #1 on: January 27, 2013, 06:00 PM »
Are you talking about document templates in Libreoffice? If so, then the program name is completely relevant as you have to understand the switches for how the program opens files.
Strength in Knowledge

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Opening Templates/Using Templates
« Reply #2 on: January 28, 2013, 12:45 AM »
https://help.libreoffice.org/Common/Starting_the_Software_With_Parameters

swriter -n TEMPLATE.FILEEXT (Opens a new file based off TEMPLATE.FILEEXT)
swriter -o TEMPLATE.FILEEXT (Opens the Template for editing)

So yes, this is completely relevant to how LibreOffice handles command line switches since most programs treat argv[1] as the file to open without any other switches specified.
Strength in Knowledge

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Opening Templates/Using Templates
« Reply #3 on: January 28, 2013, 03:55 AM »
Interesting.. i think what pratty is saying is that when you click on a document, FARR always launches it with the "open" command.. but it seems that these "template" documents have been created with a different default shell action..  FARR should probably be made to respect that if it's not already..

Could you try something for me?

Go to the "Launching Files" tab of FARR options, and uncheck "Use file launch helper utility" and see if that helps -- if not leave it unchecked and try the different Launch Methods.. see if any help?

pratty

  • Participant
  • Joined in 2006
  • *
  • Posts: 2
Re: Opening Templates/Using Templates
« Reply #4 on: January 28, 2013, 08:27 AM »
Yes, the problem is that it is not respecting the default shell action.

I have now tried the four different combinations of launching methods and method 1 in combination with the file launch utility worked (new document opened).

Thank you.

I have been overwriting templates at a rate of knots!

Original address: https://www.donationcoder.com/forum/index.php?topic=33827.0