Using parameters with Shell
Posted: Sun Dec 05, 2010 8:42 pm
Here's a shell command that runs nicely in RunRev and LiveCode:
get shell ("zip -q0X BodySnatchers.epub mimetype")
But I want to use it with a variable filename: BodySnatchers.epub might be ShrinkingMan.epub one day, or RootsOfElvis.epub on a different occasion, or any other name, depending on the text I am "epubbing".
Is it possible to somehow execute the shell command with a variable that contains the name of the file?
get shell ("zip -q0X BodySnatchers.epub mimetype")
But I want to use it with a variable filename: BodySnatchers.epub might be ShrinkingMan.epub one day, or RootsOfElvis.epub on a different occasion, or any other name, depending on the text I am "epubbing".
Is it possible to somehow execute the shell command with a variable that contains the name of the file?