Author Topic: Korganizer alarm to open .doc  (Read 264 times)

Offline kah5683

  • Sr. Member
  • ****
  • Posts: 307
Korganizer alarm to open .doc
« on: March 30, 2011, 09:13:12 AM »
Trying to get korganizer to open a .doc for an alarm so that I have a specific document opening up daily at the same time.  There is a place to "edit reminders" in new events in korganizer, and you can choose a few alarms with the default being a sound.  I chose instead of sound "application/script" and in the application part I browsed to the specific document I want opened.  Just like when you click in dolphin, I assumed that the doc would open in libreoffice.  That did not work, just the window for korganizer opened with the event listed, but no file opened.  There is another line in that section with the application/script that says "arguments".  Should I be using that also?

Thanks for the help in advance...
P8Z68-V Pro/Gen3 Motherboard - onboard soundcard
Intel i5-2500K Processor 3.3 GHz 4 core
Nvidia GeForce GTX550Ti Graphics card
60gb Patriot SSD - 2tb Seagate HDD - 8gb RAM
PCLinuxOS-KDE-2012-02

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15515
  • ┌∩┐(◕_◕)┌∩┐
Re: Korganizer alarm to open .doc
« Reply #1 on: April 30, 2011, 06:55:24 AM »
Just tested and this seems to do the trick for me  (Opens a doc in LibreOffice Writer)

In KAlarm

File > New > New Command Alarm (or use Ctrl+C)

On the Alarm Tab  

Tick the "Enter a script" box (the area below it will expand)

Now enter

#!/bin/bash
cd /path/to/your/document/
libreoffice -writer name-of-your-document.odf

==============

Under the Time section add the time/date options to suit.

On the Recurrence tab set the options for daily/weekly etc etc

Press OK  (there is an Try button which will test if your script works)

========

The screenshot below may help a little

PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000