Re: Why does this work in terminal only !?



Sebastian Volke was all like, you know, and then said something like a ...

The string $@ is empty. No command line
argument gets passed to the script.

You can pass the file, you clicked on to trigger the action, using the
%f syntax.
So the "command field" runs: /path/to/your/script.sh %f.

That's the thing I had wrong - put the qualifier "%f" at the start of the
string and didn't use a full path - your example does the trick ! Thank
you !! I spent many hours getting it wrong.

That is also described in the dialogue itself and you can read through
http://thunar.xfce.org/pwiki/documentation/custom_actions.

Found a site with the instructions which mentioned the pictures along with
the code in use, but I didn't locate the one you linked - went in a
bookmark. Pictures are good <g>.

Nice job - thanks again.
--
BlackTopBum
Second childhood !?
I'm not done with the first !

.



Relevant Pages

  • Re: Backing up suggestions?
    ... The part that imposes the self-discipline is the bit between copying the pictures from the memory card and making the backups. ... After all the pictures have been renamed, I use another script that first checks the USB drive is present before starting the copying process. ... Checking and sorting pictures does require use of a GUI but, for the actual renaming and archiving, I use a text console because it feels quicker. ...
    (alt.os.linux.suse)
  • Re: wife-proof way to launch ppp?
    ... You could even start X with a script from her ... Pictures of nephews. ... >Does that mac support running NetBSD? ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Backing up suggestions?
    ... that imposes the self-discipline is the bit between copying the pictures ... through checking each individual picture and renaming them to something ... does the script delete the images on the memory card. ... I'd prefer not to use the GUI. ...
    (alt.os.linux.suse)
  • OE 6 syntax error when trying to view graphic attachments
    ... This problem first occurred with ... Note that inserted pictures display fine. ... An error has occurred in the script on this page. ... Do you want to continue running scripts on this page? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Rename files to match date stamp
    ... long names to the pictures, smth like Picturexxxxxxxx, if I add a date on top ... alternative would be not to rename the file but to add the date stamp to the ... then the script terminates with an error. ... The date-time string contains illegal characters for a filename, so ...
    (microsoft.public.scripting.vbscript)