RE: Deleting and creating new alias in PackageMaker
RE: Deleting and creating new alias in PackageMaker
- Subject: RE: Deleting and creating new alias in PackageMaker
- From: email@hidden
- Date: Fri, 01 May 2009 07:53:53 -0700
I've used variations of these lines in postflight (mostly just removing quotes, underscores, and escaping spaces hoping that something would work):
if [ -e "Users/client/Desktop/Run_ProgramName" ] ; then
rm "Users/client/Desktop/Run_ProgramName"
fi
osascript -e 'tell application "Finder"' -e 'make new alias to POSIX file "/Users/client/ProgramFileName/ProgramName.app" at desktop' -e 'end tell'
cd ~/Desktop
mv ProgramName "Run_ProgramName"
It seems like I can create the new alias but the old one is not deleted and the new one doesn't stick. It appears for a second then disappears. The prompter of this issue was that Tiger aliases retain their original location and Leopard aliases do not. I rename the old path to Users/client/PreviousProgramName and the alias follows, whereas in Leopard, the alias is hard coded to the original path Users/client/ProgramName.
-------- Original Message --------
Subject: Re: Deleting and creating new alias in PackageMaker
From: Iceberg-Dev <email@hidden>
Date: Thu, April 30, 2009 5:24 pm
To: Installer-Dev mailing-list <email@hidden>
On Apr 30, 2009, at 8:52 PM, email@hidden wrote:
> I'm using PackageMaker to make a Tiger application upgrade and need
> to delete the old alias and replace it with a new one on the
> desktop. The various lines in postflight I've tried haven't worked.
> I seem to be able to create the new alias but not get rid of the
> old one. Any ideas?
Which various lines?
_______________________________________________
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