Mac OS X 10.4: using osascript to interact with users
Mac OS X 10.4: using osascript to interact with users
- Subject: Mac OS X 10.4: using osascript to interact with users
- From: Aaron Wyatt <email@hidden>
- Date: Fri, 12 Jun 2009 00:00:23 -0400
All-
I've found that my methods for doing user interaction from shell scripts with AppleScripts (that is, /usr/bin/osascript from with a bash script) in 10.5 don't work with 10.4. That method is to use a wrapper applescript to launch our applescripts via AppleScript Runner:
tell application "AppleScript Runner" do script path_to_applescript_file_passed_to_this_script
end tell
However, of course, there is no "AppleScript Runner" in 10.4. Nor have I found that "System Events" works in both OSes. So my question is, is there a cross-os way to do user interaction osascript calls from bash?
Google offers multiple examples but the question of a script that works across OSes doesn't easily come up. Any info (even if repetitive of google) would be much appreciated because this is a very time sensitive issue for us.
Thanks, aaron wyatt |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden