site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AcifEI++z2YLeUf83UKZv5a88YmOfQ== Thread-topic: Automator workflow shell script error when run from PackageMaker 3.0.1 User-agent: Microsoft-Entourage/12.1.0.080305 Interesting tidbit that took a while to figure out. Thought I'd throw it to the listserve for info. I have an Automator app I built that automatically configures one of the types of wireless here on our campus. One of the first steps it does is run a shell script that calls an osascript command (applescript) to run another command with admin rights if you aren't root. Then the Automator actions do the setup. Runs fine as an individual app. Put it in PackageMaker and set it to open the app (with the open file automator command in 10.5 dist package) after installing and it would glitch out on me. Also tried as a postflight script to engage the automator app, didn't work. Finally narrowed it down to the command to 'touch' a file to turn on assistive devices so that the automator app would run correctly. If I removed that part (and made sure assitive support was on) it ran fine. So I broke the shell script out of the automator app, set it up as a postflight script (which I'm guessing PackageMaker is doing as root, and skips the osascript command to sudo touch the necessary file). Then open the automator file. Works fine now. I'm guessing PackageMaker didn't like the osascript command (calling Applescript and requiring a login). When it engages the Automator app, I don't think the app is running as root at that point, whereas a post-script does. -- Bryan S. Lee Information Resource Consultant II Computer Support Services Clemson Computing and Information Technology Clemson University bl@clemson.edu ACHDS 10.4, MCP NTS/NTW _______________________________________________ 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