<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Entourage GTD: Quick Projects</title>
	<link>/entourage-quick-projects/</link>
	<description></description>
	<pubDate>Sun, 01 Aug 2010 09:02:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Adam Sneller</title>
		<link>/entourage-quick-projects/#comment-2640</link>
		<author>Adam Sneller</author>
		<pubDate>Sun, 29 Jun 2008 21:54:27 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2640</guid>
		<description>Abdul,

You are absolutely right.  I didn't realize that I had already created a reference to the project name in the "prjName" variable.  This is needed so that you can later tell Entourage which email folder to delete.

Here is a revised version:
&lt;code&gt;
(*
Quick Project

Created by Adam Sneller on 9/5/2006.
Copyright 2006. All rights reserved.
*)

-- get new project name from dialog
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")

tell application "Microsoft Entourage"

-- create project
try
make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}
on error
display dialog "Project name must be unique!" with icon 1
return
end try

-- remove project email folder
delete (first folder whose name is prjName)

end tell
&lt;/code&gt;

Good luck!
-Adam</description>
		<content:encoded><![CDATA[<p>Abdul,</p>
<p>You are absolutely right.  I didn&#8217;t realize that I had already created a reference to the project name in the &#8220;prjName&#8221; variable.  This is needed so that you can later tell Entourage which email folder to delete.</p>
<p>Here is a revised version:<br />
<code><br />
(*<br />
Quick Project</p>
<p>Created by Adam Sneller on 9/5/2006.<br />
Copyright 2006. All rights reserved.<br />
*)</p>
<p>-- get new project name from dialog<br />
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")</p>
<p>tell application "Microsoft Entourage"</p>
<p>-- create project<br />
try<br />
make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}<br />
on error<br />
display dialog "Project name must be unique!" with icon 1<br />
return<br />
end try</p>
<p>-- remove project email folder<br />
delete (first folder whose name is prjName)</p>
<p>end tell<br />
</code></p>
<p>Good luck!<br />
-Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul</title>
		<link>/entourage-quick-projects/#comment-2639</link>
		<author>Abdul</author>
		<pubDate>Sun, 29 Jun 2008 15:13:01 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2639</guid>
		<description>Adam,

That helps a lot! I modified my script and it works perfectly. I made a huge discovery in writing Applescript- dictionaries! Things are much easier now :)

One last question, why use "set theProject to make new project" when you can just "make new project"?  Does "theProject" become an object or a variable? How / when would you reference it again? 

Thanks!

Abdul</description>
		<content:encoded><![CDATA[<p>Adam,</p>
<p>That helps a lot! I modified my script and it works perfectly. I made a huge discovery in writing Applescript- dictionaries! Things are much easier now <img src='http://www.earth2adam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>One last question, why use &#8220;set theProject to make new project&#8221; when you can just &#8220;make new project&#8221;?  Does &#8220;theProject&#8221; become an object or a variable? How / when would you reference it again? </p>
<p>Thanks!</p>
<p>Abdul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sneller</title>
		<link>/entourage-quick-projects/#comment-2636</link>
		<author>Adam Sneller</author>
		<pubDate>Sat, 28 Jun 2008 18:05:09 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2636</guid>
		<description>This is a fairly contained project, so I can just post the code here for you to take a look at.  Here is the original version that is available for download:

&lt;code&gt;
(*	
        Quick Project

	Created by Adam Sneller on 9/5/2006.
	Copyright 2006. All rights reserved.
*)

-- get new project name from dialog
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")

tell application "Microsoft Entourage"
	
	-- create project
	try
		set theProject to make new project with properties {name:prjName, has due date:false}
	on error
		display dialog "Project name must be unique!" with icon 1
		return
	end try
	
end tell
&lt;/code&gt;

By default, Entourage creates the email folder for you and assigns a random color to the project (lookup "Project" in the Entourage appleScript dictionary).  But you can override this with something like:

&lt;code&gt;
set theProject to make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}
&lt;/code&gt;

And then to get rid of the project email folder:

&lt;code&gt;
set projectName to name of theProject
delete (first folder whose name is projectName)
&lt;/code&gt;

The finished code then looks like this:

&lt;code&gt;
(*	
        Quick Project

	Created by Adam Sneller on 9/5/2006.
	Copyright 2006. All rights reserved.
*)

-- get new project name from dialog
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")

tell application "Microsoft Entourage"
	
	-- create project
	try
		set theProject to make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}
	on error
		display dialog "Project name must be unique!" with icon 1
		return
	end try
	
        -- remove project email folder
        set projectName to name of theProject
        delete (first folder whose name is projectName)

end tell
&lt;/code&gt;

Copy and paste the above code into Script Editor and save the file.  If you want to start writing your own scripts, the best book out there is "AppleScript the Definitive Guide." by Matt Neuburg.  Also, you should check out the &lt;a href="http://scriptbuilders.net/" rel="nofollow"&gt;ScriptBuilders&lt;/a&gt; section of macscripter.com.  They have a lot of free code you can download, which is a great way to learn.

Hope this helps!
-Adam</description>
		<content:encoded><![CDATA[<p>This is a fairly contained project, so I can just post the code here for you to take a look at.  Here is the original version that is available for download:</p>
<p><code><br />
(*<br />
        Quick Project</p>
<p>	Created by Adam Sneller on 9/5/2006.<br />
	Copyright 2006. All rights reserved.<br />
*)</p>
<p>-- get new project name from dialog<br />
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")</p>
<p>tell application "Microsoft Entourage"</p>
<p>	-- create project<br />
	try<br />
		set theProject to make new project with properties {name:prjName, has due date:false}<br />
	on error<br />
		display dialog "Project name must be unique!" with icon 1<br />
		return<br />
	end try</p>
<p>end tell<br />
</code></p>
<p>By default, Entourage creates the email folder for you and assigns a random color to the project (lookup &#8220;Project&#8221; in the Entourage appleScript dictionary).  But you can override this with something like:</p>
<p><code><br />
set theProject to make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}<br />
</code></p>
<p>And then to get rid of the project email folder:</p>
<p><code><br />
set projectName to name of theProject<br />
delete (first folder whose name is projectName)<br />
</code></p>
<p>The finished code then looks like this:</p>
<p><code><br />
(*<br />
        Quick Project</p>
<p>	Created by Adam Sneller on 9/5/2006.<br />
	Copyright 2006. All rights reserved.<br />
*)</p>
<p>-- get new project name from dialog<br />
set prjName to text returned of (display dialog "Name:" with title "Quick Project" default answer "" buttons {"Cancel", "Create"} default button "Create")</p>
<p>tell application "Microsoft Entourage"</p>
<p>	-- create project<br />
	try<br />
		set theProject to make new project with properties {name:prjName, has due date:false, color:{0, 0, 0}}<br />
	on error<br />
		display dialog "Project name must be unique!" with icon 1<br />
		return<br />
	end try</p>
<p>        -- remove project email folder<br />
        set projectName to name of theProject<br />
        delete (first folder whose name is projectName)</p>
<p>end tell<br />
</code></p>
<p>Copy and paste the above code into Script Editor and save the file.  If you want to start writing your own scripts, the best book out there is &#8220;AppleScript the Definitive Guide.&#8221; by Matt Neuburg.  Also, you should check out the <a href="http://scriptbuilders.net/" rel="nofollow">ScriptBuilders</a> section of macscripter.com.  They have a lot of free code you can download, which is a great way to learn.</p>
<p>Hope this helps!<br />
-Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul</title>
		<link>/entourage-quick-projects/#comment-2633</link>
		<author>Abdul</author>
		<pubDate>Wed, 25 Jun 2008 20:01:56 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2633</guid>
		<description>This is a fantastic script! I was resistant to using projects because of that lame wizard and now it;s a snap. Is there any way to have the script not create a mail folder? I always delete them manually. I used to write a lot of VB Script; there is a huge MS reference for the objects you can access from MS Office- can you point me in the direction of the same for Entourage and Applescript, so I can contribute?

Thanks!
-Abdul</description>
		<content:encoded><![CDATA[<p>This is a fantastic script! I was resistant to using projects because of that lame wizard and now it;s a snap. Is there any way to have the script not create a mail folder? I always delete them manually. I used to write a lot of VB Script; there is a huge MS reference for the objects you can access from MS Office- can you point me in the direction of the same for Entourage and Applescript, so I can contribute?</p>
<p>Thanks!<br />
-Abdul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sneller</title>
		<link>/entourage-quick-projects/#comment-2264</link>
		<author>Adam Sneller</author>
		<pubDate>Fri, 07 Mar 2008 06:53:12 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2264</guid>
		<description>&lt;p&gt;Sjoerd - the QuickProject script does not control where Entourage saves its project files (this is specified internally by the application).&lt;/p&gt;
&lt;p&gt;One thing you might try is to create an alias to the "Office Projects" folder (control-clicking the folder from within Finder will give you this option).  You can then rename the alias to whatever you want and move it to the desired location.  For example, I have an alias on my desktop, titled "Projects", which links through to my "Office Projects" folder in "/adam/Documents".&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sjoerd - the QuickProject script does not control where Entourage saves its project files (this is specified internally by the application).</p>
<p>One thing you might try is to create an alias to the &#8220;Office Projects&#8221; folder (control-clicking the folder from within Finder will give you this option).  You can then rename the alias to whatever you want and move it to the desired location.  For example, I have an alias on my desktop, titled &#8220;Projects&#8221;, which links through to my &#8220;Office Projects&#8221; folder in &#8220;/adam/Documents&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sjoerd</title>
		<link>/entourage-quick-projects/#comment-2214</link>
		<author>Sjoerd</author>
		<pubDate>Sat, 01 Mar 2008 13:42:31 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-2214</guid>
		<description>Thanks!
I'm used to have my project folders at a place difference than 'Documents/Office Projects' 
How can I change this within this script?</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
I&#8217;m used to have my project folders at a place difference than &#8216;Documents/Office Projects&#8217;<br />
How can I change this within this script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francoism</title>
		<link>/entourage-quick-projects/#comment-1501</link>
		<author>Francoism</author>
		<pubDate>Thu, 27 Dec 2007 18:58:56 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-1501</guid>
		<description>Thanks for the script. I love it. I was having a hard time with the Project Centre but I can see me using it a little more now. Bravo.</description>
		<content:encoded><![CDATA[<p>Thanks for the script. I love it. I was having a hard time with the Project Centre but I can see me using it a little more now. Bravo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Sneller</title>
		<link>/entourage-quick-projects/#comment-11</link>
		<author>Adam Sneller</author>
		<pubDate>Sat, 23 Jun 2007 05:42:04 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-11</guid>
		<description>Steve - thanks for catching this!  It looks like there was some extra code in there, left over from a previous version (oops).  I updated the script, so if you try and download it again everything should work fine.

Best,
-Adam</description>
		<content:encoded><![CDATA[<p>Steve - thanks for catching this!  It looks like there was some extra code in there, left over from a previous version (oops).  I updated the script, so if you try and download it again everything should work fine.</p>
<p>Best,<br />
-Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve K</title>
		<link>/entourage-quick-projects/#comment-10</link>
		<author>Steve K</author>
		<pubDate>Tue, 19 Jun 2007 05:19:03 +0000</pubDate>
		<guid>/entourage-quick-projects/#comment-10</guid>
		<description>When I use this script, I get the following: "Microsoft Entourage got an error: Can't get some object." The script does produce a new project however as it should.</description>
		<content:encoded><![CDATA[<p>When I use this script, I get the following: &#8220;Microsoft Entourage got an error: Can&#8217;t get some object.&#8221; The script does produce a new project however as it should.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
