Hi All,
I am writing a macro attached to a spread sheet, the basic function is that I enter information relating to a document I need to scan, it looks in the default folder for the scanner say /home/scan/ when it sees a file it renames this based on the information supplied in the form, All good so far.
What I want is for the macro to open simple-scan when it runs, I have done this with the line below
Shell("/usr/bin/simple-scan",0)
My problem is closing simple-scan from the macro
I have tryed this below
shell(ākill simple-scanā)
shell(ākill /usr/bin/simple-scanā)
which to be fare doesnāt work in terminal either it gives this
bash: kill: simple-scan: arguments must be process or job IDs
next I tried
kill_simple = shell(āpgrep simple-scanā)
to get the prosses number with the hope of using something like this
kill_simple = shell(āpgrep simple-scanā)
shell(ākill + kill_simpleā)
but kill_simple always comes up with a value of Zero
Any Ideas anyone
Regards Neil