OK -- sounds like osascript doesn't want to let you script it directly. Interesting.
Instead, try putting those commands in an Applescript, compile to an executable using Script Editor, and then change the command to "/usr/bin/open script-name", i.e.:
#!/bin/sh
/usr/bin/open /Applications/WhateverMyScriptIs
(You'll have to quote it if there are strange characters or spaces. Again, test in Terminal first.)
__________________
--Dave Nanian
|