Re: Deleting and creating new alias in PackageMaker
site_archiver@lists.apple.com Delivered-To: Installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=OQmzMSK8FTOX/5YHge04292XnFITBe4sECKitovFWMs=; b=WKfdlYxU3Wfg984bmIk5JfI2wqVjx7X55JETsI0JbRfkiMxIZvMMrHC12LkN52v6mg NnAMVlA0g0G/9QHxZjrMJ6mWEf1h9VqnXChg1iTCFTSIg/it+jq2HjU228qYylLT7QHV h8gQ5+1jDHN2XdQOC3zcLjDeRpCj0EyYBBnn8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=idFFUs6SH8tlJqh/ZejKDkwnq15R2ReP+v2AmMQiG1i5c99jyR11yajK04du2d1Qq3 lo9RfhdJwc9N+t2GPjkVRW+MLpEpOkc2Z/okg9vkzVJs34CNVkwncZYDh0QcmQWosGU6 wE7lz/1P60bAmha/wxtN3BnZvxxKeRIzPt7gw= On May 1, 2009, at 4:53 PM, kmcnair@lingraphica.com wrote: if [ -e "Users/client/Desktop/Run_ProgramName" ] ; then rm "Users/client/Desktop/Run_ProgramName" fi cd ~/Desktop I've used variations of these lines in postflight (mostly just removing quotes, underscores, and escaping spaces hoping that something would work): osascript -e 'tell application "Finder"' -e 'make new alias to POSIX file "/Users/client/ProgramFileName/ProgramName.app" at desktop' -e 'end tell' 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev