<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Latest posts from topic “setting the icon of a project”</title>
	<description>Latest posts from topic “setting the icon of a project” on “SC User Forums”.</description>
	<link>http://forums.supercard.us/viewtopic.php?f=11&amp;t=461</link>
	<atom:link href="http://forums.supercard.us/generate_feed.php?content=topic_posts&amp;f%5B%5D=11&amp;t=461" rel="self" type="application/rss+xml" />
	<lastBuildDate>Tue, 01 Sep 2009 06:13:13 -0700</lastBuildDate>

			<item>
			<dc:creator>Stephane Leys</dc:creator>
			<pubDate>Fri, 04 Sep 2009 01:53:35 -0700</pubDate>
			<guid>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2469#p2469</guid>
			<link>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2469#p2469</link>
			<title>Re: setting the icon of a project</title>
			<description><![CDATA[<blockquote><div><cite>supercardus wrote:</cite><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>SetFile -a C &lt;filePath&gt;</code></dd></dl></div></blockquote><br />
Thanks Scott, I'll explore this lead.<br />
<br />
S.]]></description>
		</item>
			<item>
			<dc:creator>supercardus</dc:creator>
			<pubDate>Thu, 03 Sep 2009 08:42:58 -0700</pubDate>
			<guid>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2468#p2468</guid>
			<link>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2468#p2468</link>
			<title>Re: setting the icon of a project</title>
			<description><![CDATA[You would &quot;think&quot; there would be a simple AppleScriptable property to set the custom icon flag of files and folders (and I bet there is) but I am not aware of it. But, you should be able to set this flag using SetFile from the shell function. Something like:<br />
<br />
<dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>SetFile -a C &lt;filePath&gt;</code></dd></dl>]]></description>
		</item>
			<item>
			<dc:creator>Stephane Leys</dc:creator>
			<pubDate>Thu, 03 Sep 2009 02:10:43 -0700</pubDate>
			<guid>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2467#p2467</guid>
			<link>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2467#p2467</link>
			<title>Re: setting the icon of a project</title>
			<description><![CDATA[<blockquote><div><cite>marksch wrote:</cite>What exactly do you mean by &quot;icon of a project&quot;? Do you want to change the icon of  standalone, or the icon of a stack, or are you referring of an icon in the interface that I am not aware of?</div></blockquote><br />
The word &quot;stack&quot; belongs to HC terminology. The files produced by SC are named &quot;project&quot;. So, I'm talking about the icns used by the Finder to show this file. <br />
I'm talking about doing this by script.<br />
The technique consists in putting an icns resource with ID -16455 into the resource fork of the project (appeared in OS 7 , I think). <br />
But this is not sufficient. One also needs to set a flag in the file data of the Finder to tell it that this file is using another icon than the generic icon for this type of file. This is what I don't know how to do.<br />
The Finder is setting this flag when pasting an icon into the info window of the file. Then, changing the ID -16455 resource is understood by the Finder. But I wish to do it on a project using the generic icon without having to go to the Finder and open the info window.<br />
<blockquote><div><cite>marksch wrote:</cite>If you are talking about standalones, you can set the icon in the standalone builder.<br />
</div></blockquote><br />
The SAM is using the &quot;modern&quot; method i.e. putting a .icns file into the Contents:Resources: folder of the bundle app. But projects are not bundle folders and thus require using the &quot;old&quot; technique.<br />
Unless there is yet another technique that I don't know.<br />
<br />
S.]]></description>
		</item>
			<item>
			<dc:creator>marksch</dc:creator>
			<pubDate>Wed, 02 Sep 2009 10:48:46 -0700</pubDate>
			<guid>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2466#p2466</guid>
			<link>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2466#p2466</link>
			<title>Re: setting the icon of a project</title>
			<description><![CDATA[Hi Stephane,<br />
<br />
What exactly do you mean by &quot;icon of a project&quot;? Do you want to change the icon of  standalone, or the icon of a stack, or are you referring of an icon in the interface that I am not aware of?<br />
<br />
If you are talking about standalones, you can set the icon in the standalone builder.<br />
<br />
Best regards,<br />
<br />
Mark]]></description>
		</item>
			<item>
			<dc:creator>Stephane Leys</dc:creator>
			<pubDate>Tue, 01 Sep 2009 06:13:13 -0700</pubDate>
			<guid>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2464#p2464</guid>
			<link>http://forums.supercard.us/viewtopic.php?f=11&amp;p=2464#p2464</link>
			<title>setting the icon of a project</title>
			<description><![CDATA[How do I set the icon of a project by script ?<br />
I thought that creating an icns resource with ID = -16455 was enough. This indeed works for changing the icon once it has been set in the info wd of the Finder but not for setting the icon for the first time. Obviously, there is something else to do to inform the Finder of using this icon in the resource instead of the generic icon for this type of file. But I don't know what. AS, Shell ?<br />
<br />
S.]]></description>
		</item>
	</channel>
</rss>