Frage

In Forklift there is an Tools option, which allows to make quick actions.

But I don't really get how to create one. For example a simple one - to copy files from one pane to another.

cp $SOURCE_SELECTION_NAMES $TARGET_PATH
/bin/bash cp $SOURCE_SELECTION_NAMES $TARGET_PATH
/bin/bash/cp $SOURCE_SELECTION_NAMES $TARGET_PATH

I tried these three variants but none of them work.

Error messages:

  1. "The operation couldn’t be completed. No such file or directory"
  2. "/bin/cp: /bin/cp: cannot execute binary file"
  3. "The operation couldn’t be completed. Not a directory".

I need some other stuff like this - to covert .rtf files to .odt with a bash command:

soffice --convert-to odt $SOURCE_SELECTION_NAMES

What should i write? Maybe /bin/bash in the beginning? Still doesn't work.

War es hilfreich?

Lösung

From looking at the example in the documentation you need to specificy the full path to the commands you want to run

/bin/cp $SOURCE_SELECTION_NAMES $TARGET_PATH
/path/to/soffice --convert-to odt $SOURCE_SELECTION_NAMES
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit apple.stackexchange
scroll top