<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Quicker Way to Extract Application Icons Using AppleScript</title>
	<atom:link href="http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/</link>
	<description>There are peels everywhere...</description>
	<lastBuildDate>Mon, 23 Aug 2010 20:29:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-471</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 23 Aug 2010 20:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-471</guid>
		<description>I appreciate the tips here. Unfortunately I am only a bare middleweight in Applescript and  just a bare beginner in terminal. So I followed the first example but missed the joke as it was supposed to get easier.

My needs are: I built a database to track my ToDos. I have set up containers or menu objects that will launch my favorite apps, apps that I normally use in the to do events (Safari, iCal, etc.)

I was hoping that it might be possible to use terminal or AS to grab the application icon, probably the smaller number three version, once I set the button to am app.

I was thinking of setting the db up to do this in case I distribute it, I can do it pretty easily manually already.

Example; I set a blank button to Safari. Result, selecting Safari opens safari, but the button now also shows the small Safari icon on it. Most of the solutions so far open a whole list of .icn files. I want to select just the one. THen I can figure out what to do with it in my db project, so long as I have it selected and maybe copied to the clipboard.

I hope all that made some sense to someone?

Much thanks

David</description>
		<content:encoded><![CDATA[<p>I appreciate the tips here. Unfortunately I am only a bare middleweight in Applescript and  just a bare beginner in terminal. So I followed the first example but missed the joke as it was supposed to get easier.</p>
<p>My needs are: I built a database to track my ToDos. I have set up containers or menu objects that will launch my favorite apps, apps that I normally use in the to do events (Safari, iCal, etc.)</p>
<p>I was hoping that it might be possible to use terminal or AS to grab the application icon, probably the smaller number three version, once I set the button to am app.</p>
<p>I was thinking of setting the db up to do this in case I distribute it, I can do it pretty easily manually already.</p>
<p>Example; I set a blank button to Safari. Result, selecting Safari opens safari, but the button now also shows the small Safari icon on it. Most of the solutions so far open a whole list of .icn files. I want to select just the one. THen I can figure out what to do with it in my db project, so long as I have it selected and maybe copied to the clipboard.</p>
<p>I hope all that made some sense to someone?</p>
<p>Much thanks</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Michel</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-160</link>
		<dc:creator>Martin Michel</dc:creator>
		<pubDate>Mon, 25 Aug 2008 15:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-160</guid>
		<description>Peter: And may His Noodly Appendage touch all of our scripts!

I had to laugh so hard when I read this, I almost spilled coffee over my PowerBook screen :)
Just a note: Unfortunately only Cocoa apps have a Info.plist file, Carbon apps don&#039;t. For example it doesn&#039;t work for MS Office 2004 apps. Waiting for more great articles!</description>
		<content:encoded><![CDATA[<p>Peter: And may His Noodly Appendage touch all of our scripts!</p>
<p>I had to laugh so hard when I read this, I almost spilled coffee over my PowerBook screen :)<br />
Just a note: Unfortunately only Cocoa apps have a Info.plist file, Carbon apps don&#8217;t. For example it doesn&#8217;t work for MS Office 2004 apps. Waiting for more great articles!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-159</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 25 Aug 2008 13:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-159</guid>
		<description>Martin:

Thanks for your input!  It never dawned on me to look in the application’s preferences file, but I suddenly suspect that a wealth of other useful actions could be performed starting from there.

I took a look at your script and will definitely give it a run.  Outstanding piece of work!

And may His Noodly Appendage touch all of our scripts!</description>
		<content:encoded><![CDATA[<p>Martin:</p>
<p>Thanks for your input!  It never dawned on me to look in the application’s preferences file, but I suddenly suspect that a wealth of other useful actions could be performed starting from there.</p>
<p>I took a look at your script and will definitely give it a run.  Outstanding piece of work!</p>
<p>And may His Noodly Appendage touch all of our scripts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Michel</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-157</link>
		<dc:creator>Martin Michel</dc:creator>
		<pubDate>Mon, 25 Aug 2008 08:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-157</guid>
		<description>In case you only need to extract the application icon, you can also read the application&#039;s Info.plist file, which contains the file name of the corresponding ICNS file stored in the app&#039;s Resources folder:

set plistpath to &quot;/Applications/TextEdit.app/Contents/Info&quot;
set command to &quot;defaults read &quot; &amp; quoted form of plistpath &amp; &quot; CFBundleIconFile&quot;
set filename to (do shell script command)

But sometimes the &quot;.icns&quot; suffix is missing, so you need to check this.

I also wrote a free AppleScript to do the conversion. It&#039;s called iconoodle :-)

http://bbs.macscripter.net/viewtopic.php?id=25281

Best regards from rainy Germany!</description>
		<content:encoded><![CDATA[<p>In case you only need to extract the application icon, you can also read the application&#8217;s Info.plist file, which contains the file name of the corresponding ICNS file stored in the app&#8217;s Resources folder:</p>
<p>set plistpath to &#8220;/Applications/TextEdit.app/Contents/Info&#8221;<br />
set command to &#8220;defaults read &#8221; &amp; quoted form of plistpath &amp; &#8221; CFBundleIconFile&#8221;<br />
set filename to (do shell script command)</p>
<p>But sometimes the &#8220;.icns&#8221; suffix is missing, so you need to check this.</p>
<p>I also wrote a free AppleScript to do the conversion. It&#8217;s called iconoodle :-)</p>
<p><a href="http://bbs.macscripter.net/viewtopic.php?id=25281" rel="nofollow">http://bbs.macscripter.net/viewtopic.php?id=25281</a></p>
<p>Best regards from rainy Germany!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-156</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 24 Aug 2008 15:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-156</guid>
		<description>MacTipper:

Haha - how is it that I discover the most convoluted way to do something and then spend an hour writing a script to automate it?!  Excellent (and embarrassing?) comment!  Touché.</description>
		<content:encoded><![CDATA[<p>MacTipper:</p>
<p>Haha &#8211; how is it that I discover the most convoluted way to do something and then spend an hour writing a script to automate it?!  Excellent (and embarrassing?) comment!  Touché.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacTipper</title>
		<link>http://macmembrane.com/a-quicker-way-to-extract-application-icons-using-applescript/comment-page-1/#comment-155</link>
		<dc:creator>MacTipper</dc:creator>
		<pubDate>Sun, 24 Aug 2008 15:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://macmembrane.com/?p=497#comment-155</guid>
		<description>A much easier way to copy icons is to just select the app, hit Cmd-C, switch over to Preview and hit Cmd-N.

One could automate this with interface scripting if you wanted to:

&lt;code&gt;tell application &quot;System Events&quot;
	tell process &quot;Finder&quot;
		keystroke &quot;c&quot; using command down
	end tell
end tell

tell application &quot;Preview&quot;
	activate
	tell application &quot;System Events&quot;
		keystroke &quot;n&quot; using command down
	end tell
end tell&lt;/code&gt;

MacTipper
http://www.mactipper.com/</description>
		<content:encoded><![CDATA[<p>A much easier way to copy icons is to just select the app, hit Cmd-C, switch over to Preview and hit Cmd-N.</p>
<p>One could automate this with interface scripting if you wanted to:</p>
<p><code>tell application "System Events"<br />
	tell process "Finder"<br />
		keystroke "c" using command down<br />
	end tell<br />
end tell</p>
<p>tell application "Preview"<br />
	activate<br />
	tell application "System Events"<br />
		keystroke "n" using command down<br />
	end tell<br />
end tell</code></p>
<p>MacTipper<br />
<a href="http://www.mactipper.com/" rel="nofollow">http://www.mactipper.com/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
