Hi there,
I've been drive quite mad trying to work out the correct syntax for activating a shell script in Applescript to start Vuze in headless mode and would appreciate any advice.
If I just paste the following into Terminal, it works fine:
java -XstartOnFirstThread -Dazureus.install.path="/Applications/Vuze.app/" -Dazureus.config.path="$HOME/Library/Application Support/Vuze/" -Duser.dir="/Applications/" -Dazureus.console.multiuser=1 -jar /Applications/Vuze.app/Contents/Resources/Java/Azureus2.jar --ui=console
[taken from boonlen's post of Sept 5 2009]
BUT if I try the following equivalent in Applescript, it doesn't:
set install_path to "Macintosh_HD/Applications/Vuze.app/"
set config_path to "Macintosh_HD/Users/gavin/Library/Application Support/Vuze/"
set user_dir to "Macintosh_HD/Applications/"
set azureus_jar to "/Macintosh_HDApplications/Vuze.app/Contents/Resources/Java/Azureus2.jar"
do shell script "java -XstartOnFirstThread -Dazureus.install.path= " & install_path & " -Dazureus.config.path= " & config_path & " -Duser.dir= " & user_dir & " -Dazureus.console.multiuser=1 -jar " & azureus_jar --ui=console"
I get this error message when I try to run the applescript:
Exception in thread "main" java.lang.NoClassDefFoundError: Macintosh_HD/Applications/Vuze/app/
Any ideas?
PS the reason I want to start Vuze this way is to be able to script the removal of completed torrents.
I've been drive quite mad trying to work out the correct syntax for activating a shell script in Applescript to start Vuze in headless mode and would appreciate any advice.
If I just paste the following into Terminal, it works fine:
java -XstartOnFirstThread -Dazureus.install.path="/Applications/Vuze.app/" -Dazureus.config.path="$HOME/Library/Application Support/Vuze/" -Duser.dir="/Applications/" -Dazureus.console.multiuser=1 -jar /Applications/Vuze.app/Contents/Resources/Java/Azureus2.jar --ui=console
[taken from boonlen's post of Sept 5 2009]
BUT if I try the following equivalent in Applescript, it doesn't:
set install_path to "Macintosh_HD/Applications/Vuze.app/"
set config_path to "Macintosh_HD/Users/gavin/Library/Application Support/Vuze/"
set user_dir to "Macintosh_HD/Applications/"
set azureus_jar to "/Macintosh_HDApplications/Vuze.app/Contents/Resources/Java/Azureus2.jar"
do shell script "java -XstartOnFirstThread -Dazureus.install.path= " & install_path & " -Dazureus.config.path= " & config_path & " -Duser.dir= " & user_dir & " -Dazureus.console.multiuser=1 -jar " & azureus_jar --ui=console"
I get this error message when I try to run the applescript:
Exception in thread "main" java.lang.NoClassDefFoundError: Macintosh_HD/Applications/Vuze/app/
Any ideas?
PS the reason I want to start Vuze this way is to be able to script the removal of completed torrents.