Running shell commands
Posted: Mon May 03, 2010 12:09 am
Trying to run a few shell commands, using the shell function, as follows:
on mouseUp
put shell ("cd /Users/davidneale/Documents/Web\ stuff/David\'s\ Web\ stuff/Telenet\ Webspace/elvis/originals/eBook")
put shell ("ls")
get shell ("zip -q0X ROE.epub mimetype")
get shell ("zip -qXr9D ROE.epub *")
end mouseUp
I put the put shell ("ls") in as a check, when I couldn't get the rest to work. This line actually does return a directory list, but it shows only the contents of the Revolution directory (in other words, the cd command was not executed correctly).
Can anyone tell me what I am doing wrong?
on mouseUp
put shell ("cd /Users/davidneale/Documents/Web\ stuff/David\'s\ Web\ stuff/Telenet\ Webspace/elvis/originals/eBook")
put shell ("ls")
get shell ("zip -q0X ROE.epub mimetype")
get shell ("zip -qXr9D ROE.epub *")
end mouseUp
I put the put shell ("ls") in as a check, when I couldn't get the rest to work. This line actually does return a directory list, but it shows only the contents of the Revolution directory (in other words, the cd command was not executed correctly).
Can anyone tell me what I am doing wrong?