thanks for u r reply Conrad Shultz i am using this below script for creating a shortcut icon for my test application on my desktop, when i install my package.
#!/bin/sh `chmod -R 777 /Applications/test.app` `ln -s /Applications/test.app ~/Desktop/` First time when i install my package it creates a shortcut icon on desktop ,when i uninstall and install again (second time) there is no shortcut icon on my desktop. Regards, Kiran On Oct 5, 2011, at 1:44 PM, Conrad Shultz wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/5/11 12:16 AM, kiran kumar wrote: Hi All, I need to run this ln -s /Applications/test.app ~/Desktop/ command for every boot on Mac OS 10.6. Please can any one suggest me how to do this . 1) This has nothing to do with Cocoa. 2) Symlinking at every boot between two fixed paths seems really unusual (unless ~/Desktop is getting wiped every time for some reason). It should also be noted that ~ doesn't mean a whole lot at boot time since it is determined by the logged-in user. My first guess is that you are using autologin to a guest account of some sort that does not persist files, in which case there are likely better ways to accomplish whatever result is intended from your question. 3) If you are interested in the general topic of automated execution, Google "login items" (for an easy user-configurable method) or "launchd" (OS X's full-featured Swiss army knife of automated execution, roughly a replacement for the System V init/cron scripts and more). - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com<http://www.synthetiqsolutions.com> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6MEeYACgkQaOlrz5+0JdWRkgCdFYLARGwbGAHkf3hWhWLcpxAg 1igAn1ULFrirdhH8lfb8hpnwo2bKTvlQ =bfv3 -----END PGP SIGNATURE----- ________________________________ The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com