site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: Acj8B2BCGpgFFuU0LEmiebjNUvdlyQ== Thread-topic: osascript and Mac OS X v10.5.4 User-agent: Microsoft-Entourage/12.10.0.080409 Hi Stéphane, On 8/11/08 2:17 PM, "Stéphane Sudre" <iceberg-dev@orange.fr> wrote:
On Aug 11, 2008, at 10:31 PM, Luke Bellandi wrote:
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)?
Stupid idea:
Could it be related to the security fix for the AppleScript flaw?
If it's the case, then the issue should also happen on a 10.4.11 OS fully patched.
Ah -- it's not related to the security patch, but your suggestion led me to find out that on Leopard osascript disallows user interaction when run from a command-line tool. That's apparantly a behavior change from Tiger. Cheers, Luke
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com