Automator workflow shell script error when run from PackageMaker 3.0.1
Automator workflow shell script error when run from PackageMaker 3.0.1
- Subject: Automator workflow shell script error when run from PackageMaker 3.0.1
- From: "Bryan S. Lee" <email@hidden>
- Date: Tue, 15 Apr 2008 11:51:26 -0400
- Thread-topic: Automator workflow shell script error when run from PackageMaker 3.0.1
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
email@hidden
ACHDS 10.4, MCP NTS/NTW
_______________________________________________
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