• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [373458] Shell script and AppleScript in Postflight script for an installer package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [373458] Shell script and AppleScript in Postflight script for an installer package


  • Subject: Re: [373458] Shell script and AppleScript in Postflight script for an installer package
  • From: email@hidden
  • Date: Fri, 28 Oct 2011 14:37:50 -0400

After doing more rigorous debugging I was able to answer the first question myslef, and  I found an alternative script for pulling the uid of a running Finder.  (FYI, this:
         FinderUID=`/bin/ps -axc -ouid,command | /usr/bin/grep Finder| /usr/bin/sed  's/^ *//' | cut -d\  -f1 `
...works in all test situations, while using {/bin/ps -axcf | /usr/bin/grep Finder | ... etc.  } sometimes yielded a null result in a package push script to Leopard, but not Snow Leopard systems.  Go figured

Anyway, that's solved, but I am still looking for an answer to the the second question.  Let me rephrase it:

If the Finder is running (i.e., someone is logged into the GUI) can I call an Applescript (saved as an Application, delivered in the installer payload) in a POSTFLIGHT script of a package being pushed out with ARD or Casper or LanDesk to prompt the user to take some required action before completing the script?  This seems to work well in Snow Leopard if I chown the script to the UID of the Finder and sudo to that user before launching it (or launching a script that launches it).    I've got a script that works great and is easily adapted, and it should work well if manually run by someone, so if I can use

If not, how can I give this notification to the user (to quit Excel, e.g.) in a pushed installer script?  This is a requirement for this and I'm sure future installers to avoid lost work in application pushes.

Thanks for any help,

Rick Horlick

=
 _______________________________________________
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

  • Prev by Date: Re: Creating pkg to install on Snow Leopard AND Lion
  • Next by Date: Shell script and AppleScript in Postflight script for an installer package
  • Previous by thread: Re: Creating pkg to install on Snow Leopard AND Lion
  • Next by thread: Shell script and AppleScript in Postflight script for an installer package
  • Index(es):
    • Date
    • Thread