I am trying to use the cli function with a transformation, which has multiple outputs.
I have defined alias’ for input and the four outputs.
But this terminal-command does not output anything: /Applications/EasyDataTransform.app/Contents/MacOS/EasyDataTransform '/Users/jh/Easy Data Transform/Revisor Posten/RevisorPosten-cli.transform' -file 'input=/Users/jh/Desktop/Testinput.xlsx' 'liste-egenforside=/Users/jh/Desktop/liste-egenforside.xlsx' 'liste-standard=/Users/jh/Desktop/liste-standard.xlsx' 'post-egenforside=/Users/jh/Desktop/post-egenforside.csv' 'post-standard=/Users/jh/Desktop/ost-standard.csv' -cli
If I run the transform in the program it exports the files in the defined location in the transform file.
I also forgot I reference a file with headers. So now I have tried to define all the files with alias’ with this command: /Applications/EasyDataTransform.app/Contents/MacOS/EasyDataTransform '/Users/jh/Easy Data Transform/Revisor Posten/RevisorPosten-cli.transform' -file 'input=/Users/jh/Desktop/Testinput.xlsx' -file 'liste-egenforside=/Users/jh/Desktop/liste-egenforside.xlsx' -file 'liste-standard=/Users/jh/Desktop/liste-standard.xlsx' -file 'post-egenforside=/Users/jh/Desktop/post-egenforside.csv' -file 'post-standard=/Users/jh/Desktop/ost-standard.csv' -file 'PostformatBlankeHeaders=/Users/jh/Easy Data Transform/Revisor Posten/PostformatBlankeHeaders.xlsx' -cli
But it does still not output anything to my desktop. Just to the standard location from the transform.
More tests. Forgot to define the sheet in the filename for the input. /Applications/EasyDataTransform.app/Contents/MacOS/EasyDataTransform '/Users/jh/Easy Data Transform/Revisor Posten/RevisorPosten-cli.transform' -file 'input=/Users/jh/Desktop/Testinput.xlsx[1]' -file 'liste-egenforside=/Users/jh/Desktop/liste-egenforside.xlsx' -file 'liste-standard=/Users/jh/Desktop/liste-standard.xlsx' -file 'post-egenforside=/Users/jh/Desktop/egen.csv' -file 'post-standard=/Users/jh/Desktop/standard.csv' -file 'PostformatBlankeHeaders=/Users/jh/Easy Data Transform/Revisor Posten/PostformatBlankeHeaders.xlsx' -cli
Now it output the two Excel-files to my desktop. But not the 2 csv-files.
As a follow up, then it could be a good feature to be able to could set it to just use the first sheet.
Because sometimes I receive Excel-files with only one sheet, but that sheet have a different name each time.
I agree it would probably be useful to be able to use ‘[1]’ to mean the first sheet (assuming there is no sheet named “1”!), ‘2’ for the second sheet etc. I will add it to the wishlist.
I am experimenting with a new feature that lets you create a sample command line, which you can then paste into a terminal, script etc and edit. Hopefully that will make the command line easier to use.