• 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: icon in Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: icon in Dock


  • Subject: Re: icon in Dock
  • From: Joseph Chilcote <email@hidden>
  • Date: Sat, 14 Dec 2013 10:12:27 -0800

Hi Oak.

I'm not familiar with emmett, but it looks like you'll need to follow the provided guidelines [1] for running the command in the user context.  Postflight scripts are generally run as root.

You might even be able to lift the script directly from that page.  Be wary of the warnings about running it via the command line, and be sure to use the correct installer environment parameters.

The usual caveats apply, and at the very least you'll need to break the bad news to your boss that while it is possible to update the current user's dock when installing the package in a login (GUI) session, it will not work when installed via management tools (such as ARD), nor will the dock of any secondary, or as-yet-uncreated, local accounts likely be edited. 

Myself, I prefer to let the users choose what is or is not in their dock.

Cheers,
--joe

[1]: http://s.sudre.free.fr/Software/Packages/Q&A_2.html




On Thu, Dec 12, 2013 at 6:00 PM, Oakman <email@hidden> wrote:
Hello,

Before I begin I should say, I am a certifiable newbie at creating installer packages.

Some background: My manager dropped this project in my lap, being the only Mac user in the organization and I have no real choice in the matter.
We have an application that could be a drag & drop install, but will be installed using Installer.app. Only reason being the manager wants the app's icon in the Dock.

Problem is I am not a programmer and only have some basic knowledge of applescripting and even less of shell scripting.

To create a .mpkg I used Packages and am trying to use emmett to put the icon in the Dock by using a postinsall.sh to do the lifting. Nothing I have tried so far has worked. From Terminal I use
'path/to/emmett add /Applications/foo.app'
which works a treat. If I use the same code in the postinstall.sh it fails.

Please, can one of you folks point me in the right direction?

Thanks for your help.

/Oak

 _______________________________________________
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

 _______________________________________________
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

References: 
 >icon in Dock (From: Oakman <email@hidden>)

  • Prev by Date: Re: icon in Dock
  • Next by Date: Creating package for LEGO WeDo
  • Previous by thread: Re: icon in Dock
  • Next by thread: Creating package for LEGO WeDo
  • Index(es):
    • Date
    • Thread