From: JoeHill <jo...@sy...> - 2004-05-17 15:38:50
|
On Mon, 17 May 2004 17:07:50 +0200 Jonatan Liljedahl disseminated the following: > > What I thought would be sweet is if one could drag a file to an > > AppDir that somehow used that command line, but I am not sure about > > how I would script that. > > That is _very_ simple. I had a feeling, but I know this much so far about bash scripting: you have to put '#!/bin/sh' at the beginning ;-) > 1) Create an AppDir > 2) Create an AppRun script in it: > > #!/bin/sh > sylpheed --compose --attach "$@" Well, I knew there would be a '$' in there somewhere...I should be off to O'Reilly's I suppose to buy a big book on bash scripting. > 3) Done! > > NOTE: If you have Sylpheed installed as an AppDir, replace "sylpheed" > with "/full/path/to/sylpheed_appdir/AppRun" > > PS. > Don't forget to make the AppRun file executable Okay, I knew that part :-D Thanks for not replying 'RTFM', though that may have been better for me in the long run. Much appreciated! -- JoeHill RLU #282046 / www.orderinchaos.org Kernel 2.4.22-21.tmb.1mdk Mandrake Linux release 9.2 (FiveStar) for i586 +++++++++++++++++++++++++++ 11:34:47 up 13:47, 5 users, load average: 1.04, 1.07, 1.12 +++++++++++++++++++++++++++ "...we must guard against the acquisition of unwarranted influence, whether sought or unsought, by the military-industrial complex." -- President Dwight D. Eisenhower, in his 1961 farewell address |