View Single Post
  #6  
Old 02-19-2005, 07:38 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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
Reply With Quote