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: Iceberg-Dev <email@hidden>
- Date: Mon, 4 May 2009 22:14:02 +0200
On May 1, 2009, at 4:53 PM, email@hidden wrote:
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"
What I would try in this case is to print in the log or in the
console, the path you use during the execution of the script. It
could be this is not the one you expect.
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.
An alias that is hard coded to the original path sounds more like a
symbolic link.
_______________________________________________
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