osascript and Mac OS X v10.5.4
osascript and Mac OS X v10.5.4
- Subject: osascript and Mac OS X v10.5.4
- From: Luke Bellandi <email@hidden>
- Date: Mon, 11 Aug 2008 13:31:25 -0700
- Thread-topic: osascript and Mac OS X v10.5.4
Title: osascript and Mac OS X v10.5.4
Hi,
I’ve got a preflight script that executes AppleScript via osascript. This works in Mac OS X v10.4, but not in 10.5.4
An example is:
osascript<<EOF
tell application "Installer"
activate
display dialog "Hello World"
end tell
EOF
This doesn’t work — When run from Terminal.app, I get the failure message:
49:77: execution error: Installer got an error: "Hello World" doesn’t understand the display dialog message. (-1708)
But if I change the script to “tell” a different application (I’ve tried Finder, Safari, Audio MIDI Setup) -- they all respond appropriately and show the dialog. Why doesn’t the Installer do it in 10.5? This worked in 10.4 (and I believe even in earlier versions of 10.5.4 — could this have broken in the 10.5.3 or 10.5.4 update)?
Thanks all,
Luke
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden