Re: How to replace old version of product?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AcjVc515Y/ZuPTxWR2GWZKXmoO1spAAjgppQ Thread-topic: How to replace old version of product? User-agent: Microsoft-Entourage/12.10.0.080409 on 2008-06-23 4:56 PM, William J. Cheeseman at bill@cheeseman.name wrote:
I'm thinking of a postinstall script something like this:
osascript -e "tell application \"Finder\" to update POSIX file \"<fullpath>\""
Is there a way to do that without resorting to AppleScript? I suspect not.
touch /full/path ?
I had looked at that, but it seems to be limited to updating the file dates. I'm not sure I want to do that. But I'll experiment with it and see what happens.
It appears that 'touch' does not accomplish my goal. Furthermore, the Finder 'update' command in AppleScript is apparently broken in Leopard (10.5.3). So I'm stuck. I can't find any way to update the Finder's listing of the installed application's version, short of logging out and back in. In my opinion, this makes for a terrible user experience. It isn't good for AppleScripters, either, because the Finder continues to respond to AppleScript commands (such as 'get version of <path>) as if the old file were still installed. -- Bill Cheeseman - bill@cheeseman.name Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com _______________________________________________ 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)
-
Bill Cheeseman