Re: Is setting a custom folder icon possible?
Re: Is setting a custom folder icon possible?
- Subject: Re: Is setting a custom folder icon possible?
- From: Mike Fischer <email@hidden>
- Date: Wed, 18 May 2005 13:46:52 +0200
Hi Stéohane,
Am 18.05.2005 um 08:08 schrieb Stéphane Sudre:
On mardi, mai 17, 2005, at 03:13 PM, Mike Fischer wrote:
So to summarize, I understand that:
- There is no intrinsic method to set Finder flags on installed files
or folders in an installer package;
- Using a postflight script it is possible to trigger an executable
that sets Finder flags;
- Since no executable, capable of setting Finder flags, exists on a
standard install of Mac OS X, a suitable executable must be provided
in the installer package.
Correct?
At least, that's what I would do.
OK, thanks.
I've got a rough workaround based on your idea in place. I need to test
and fine-tune a bit but that is not big problem. I added some shell
code to make the postflight script independent of the install location
and somewhat independent on the foldername. The former is done by
evaluating the parameters to the script and the later by using lsbom to
extract the name of the folder like this:
folderName=`lsbom -d -p f "$1/Contents/Archive.bom" | grep
"/ProductName"`
This relies on the assumption that the folder will be named something
like "<ProductName> x.y" for example.
Then I do:
"$1/Contents/Resources/SetCustomIcon" -C "$2/$folderName"
to set the custom icon using the included tool.
I'm probably going to change this to a more general method by making
the tool set the custom icon flag for any folder in the specified
hierarchy that contains an Icon\n file.
Again thanks for your help!
Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Web: <http://homepage.mac.com/mike_fischer/index.html>
Note: I read this list in digest mode!
Send me a private copy for faster responses.
_______________________________________________
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