<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>4 -&#62; A</title>
	<atom:link href="http://4pplescript.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://4pplescript.wordpress.com</link>
	<description>AppleScript Blog - Learn with Me</description>
	<lastBuildDate>Wed, 08 Jul 2009 18:50:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='4pplescript.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>4 -&#62; A</title>
		<link>http://4pplescript.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://4pplescript.wordpress.com/osd.xml" title="4 -&#62; A" />
	<atom:link rel='hub' href='http://4pplescript.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Drop &amp; Drop Script</title>
		<link>http://4pplescript.wordpress.com/2009/07/08/drop-drop-script/</link>
		<comments>http://4pplescript.wordpress.com/2009/07/08/drop-drop-script/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 18:49:13 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=66</guid>
		<description><![CDATA[Here&#8217;s an AppleScript I use at work: its a file that when folders are dropped onto it, the images inside are opened up as an image sequence in QuickTime, made into movies, and then saved. It it not really ready to be used by anyone (you&#8217;ll have to modify some paths, filenames, etc) but I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=66&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an AppleScript I use at work: its a file that when folders are dropped onto it, the images inside are opened up as an image sequence in QuickTime, made into movies, and then saved.</p>
<p>It it not really ready to be used by anyone (you&#8217;ll have to modify some paths, filenames, etc) but I just wanted to get this up and maybe I&#8217;ll fix it up later for more general purpose use.</p>
<p>This took me forever to make because I didn&#8217;t understand the QuickTime AppleScript Dictionary.</p>
<p><code>
<pre>on open folderNames
	repeat with i from 1 to length of folderNames
		tell application "QuickTime Player"
			set compath to (POSIX path of item i of folderNames)
			(*tell application "Script Editor"
				display dialog compath
			end tell*)
			set documentObj to open image sequence (compath &amp; "frame0.jpg") frames per second 30
			(**)
			set a to compath
			set e to (offset of "/" in a)
			set a to ((items (e + 1) thru ((((length of a)))) of a as text))
			set e to ""
			repeat while not e = ((length of a) + 1)
				set e to (offset of "/" in a)
				if e = ((length of a)) then
					exit repeat
				end if
				set a to ((items (e + 1) thru ((length of a)) of a as text))
			end repeat
			(**)
			set ending to a
			(* ending means folder name *)
			set basepath to (items (0 + 1) thru ((offset of (ending as text) in compath) - 1)) of compath as text
			set foldername to (items 1 thru ((length of ending) - 1)) of ending as text
			#tell application "Script Editor"
			#	display dialog foldername &amp; ".mov"
			#end tell
			set (name of documentObj) to (foldername &amp; ".mov")
			save self contained documentObj in (basepath &amp; foldername &amp; ".mov")
			#tell application "Script Editor"
			#	display dialog basepath &amp; foldername &amp; ".mov"
			# end tell
			close
		end tell
	end repeat
	display dialog "All Movies Saved - Quitting..."
	tell application "QuickTime Player"
		quit
	end tell
end open
</pre>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=66&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2009/07/08/drop-drop-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Blogs</title>
		<link>http://4pplescript.wordpress.com/2008/11/13/blogs/</link>
		<comments>http://4pplescript.wordpress.com/2008/11/13/blogs/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 07:45:07 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=64</guid>
		<description><![CDATA[http://koldfyre.wordpress.com/ http://pythonprog.wordpress.com/ http://iphoneaday.wordpress.com/ NEW &#8211; http://veryus.wordpress.com/ NEW &#8211; http://learnware.wordpress.com/ http://4pplescript.wordpress.com/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=64&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://koldfyre.wordpress.com/</p>
<p>http://pythonprog.wordpress.com/</p>
<p>http://iphoneaday.wordpress.com/</p>
<p>NEW &#8211; http://veryus.wordpress.com/<br />
NEW &#8211; http://learnware.wordpress.com/</p>
<p>http://4pplescript.wordpress.com/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=64&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/11/13/blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Tell Me!</title>
		<link>http://4pplescript.wordpress.com/2008/09/02/tell-me/</link>
		<comments>http://4pplescript.wordpress.com/2008/09/02/tell-me/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:51:02 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=62</guid>
		<description><![CDATA[Readers, anyone, comment on what you want! What types of applescripts are you looking for, etc. Anything related to AppleScript so I can put up some useful content!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=62&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Readers, anyone, comment on what you want!  What types of applescripts are you looking for, etc.<br />
Anything related to AppleScript so I can put up some useful content!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=62&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/09/02/tell-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide Your App Script</title>
		<link>http://4pplescript.wordpress.com/2008/08/12/hide-your-app-script/</link>
		<comments>http://4pplescript.wordpress.com/2008/08/12/hide-your-app-script/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 22:45:37 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript tutorial]]></category>
		<category><![CDATA[force hide]]></category>
		<category><![CDATA[free script]]></category>
		<category><![CDATA[hide application]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[secret]]></category>
		<category><![CDATA[system events]]></category>
		<category><![CDATA[useful applescript]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=53</guid>
		<description><![CDATA[Say you need to restrict your kid from doing something, like drawing in Photoshop. You could, of course, create separate accounts, password protect the admin account, restrict the account from opening Photoshop. &#8230; But that restricts Photoshop *forever*&#8230; How about just for 3 hours while she/he&#8217;s studying? This is where this script comes in useful. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=53&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Say you need to restrict your kid from doing something, like drawing in Photoshop.  You could, of course, create separate accounts, password protect the admin account, restrict the account from opening Photoshop.  &#8230; But that restricts Photoshop *forever*&#8230; How about just for 3 hours while she/he&#8217;s studying?</p>
<p>This is where this script comes in useful.  This <b>3</b> line script will continually hide your application and if someone tries to open your application, they see a flicker as the application tries to show up but this script hides it so fast that you can&#8217;t see any of the content.  Just replace the application name in the script with whatever you are trying to hide, run this script, then hide the script window.</p>
<p>After you have gotten back from your bathroom break, press <span style="border:1px solid darkgray;padding:2px 3px;"><code>Command + Alt/Option + ESC</code></span> and Force Quit the script.</p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>repeat<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell application "System Events" to set visible of process "Firefox" to false<br />
end repeat</code></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=53&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/08/12/hide-your-app-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Day 4: Some More</title>
		<link>http://4pplescript.wordpress.com/2008/08/12/day-4-some-more/</link>
		<comments>http://4pplescript.wordpress.com/2008/08/12/day-4-some-more/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 22:11:38 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[case press]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[compound statement]]></category>
		<category><![CDATA[control statements]]></category>
		<category><![CDATA[correct syntax]]></category>
		<category><![CDATA[dialog box]]></category>
		<category><![CDATA[endif]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[mistake]]></category>
		<category><![CDATA[myage]]></category>
		<category><![CDATA[myname]]></category>
		<category><![CDATA[object oriented programming]]></category>
		<category><![CDATA[oriented object]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[quicktime]]></category>
		<category><![CDATA[script editor]]></category>
		<category><![CDATA[script object]]></category>
		<category><![CDATA[string concatenation]]></category>
		<category><![CDATA[taking the time]]></category>
		<category><![CDATA[variable name]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=51</guid>
		<description><![CDATA[Statements are a series of words that AppleScript recognizes and follows the correct syntax. There 3 main types of statements: control statement, simple statement, and a compound statement. Control Statements These statements determine the &#8220;how&#8221; and &#8220;when&#8221; of other statements/commands. Some common ones are if and repeat statements. if myAge is greater than 10 then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=51&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Statements</b> are a series of words that AppleScript recognizes and follows the correct syntax.  There 3 main types of statements: <b>control statement</b>, <b>simple statement</b>, and a <b>compound statement</b>.</p>
<p><a name="control"><br />
<h3>Control Statements</h3>
<p></a><br />
These statements determine the &#8220;how&#8221; and &#8220;when&#8221; of other statements/commands.  Some common ones are <span style="border:1px solid darkgray;padding:2px 3px;"><code>if</code></span> and <span style="border:1px solid darkgray;padding:2px 3px;"><code>repeat</code></span> statements.</p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>if myAge is greater than 10 then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myName<br />
endif</code></span>  </p>
<p>If the variable <span style="border:1px solid darkgray;padding:2px 3px;"><code>myAge</code></span> is greater than 10, then AppleScript will print the value of <span style="border:1px solid darkgray;padding:2px 3px;"><code>myName</code></span> in the &#8220;Result&#8221; box near the bottom of Script Editor.  <span style="border:1px solid darkgray;padding:2px 3px;"><code>If</code></span> <i>something</i> ends with <span style="border:1px solid darkgray;padding:2px 3px;"><code>end if</code></span>.</p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>repeat<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;say "Hello"<br />
end repeat</code></span></p>
<p>Notice that <span style="border:1px solid darkgray;padding:2px 3px;"><code>repeat</code></span> also ends with an <span style="border:1px solid darkgray;padding:2px 3px;"><code>end repeat</code></span>.  Because no other information was given, this code snippet will repeat forever, and say &#8220;Hello&#8221; every time it repeats.</p>
<p>If you actually make a mistake like that in making an application, the best way to quit out would be to <b>Quit</b> but your computer may freeze up.  In that case, press COMMAND + ALT + ESC (Command + Alt/Option + ESC).  Then <b>Force Quit</b> your app.</p>
<p>
A simple statement is simply a one-line statement and a compound statement is a multi-line statement that may contain other statements.
</p>
<p><b>Simple Statement</b></p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>tell application "Finder" to activate</code></span></p>
<p>This code tells Finder to become focused on, or if Finder is closed, to open up Finder.  Applications have special names so Quicktime cannot just be referred to as &#8220;Quicktime&#8221;.  It is actually &#8220;QuickTime Player&#8221; and it is easy to find out any applications name &#8211; just run the script with the wrong name and a dialog box will pop up asking you which application you meant to call.</p>
<p><a name="objectoriented"><br />
<h3>AppleScript is Object Oriented</h3>
<p></a><br />
Object oriented is very popular now and seems to have replaced functional programming.  If you do not know about object oriented programming, I would recommend you search it on Google and learn a little big more about it.  It is definitely worth taking the time off and learning about.  <a href="http://www.google.com/search?q=object+oriented+programming+introduction">Google it!</a></p>
<p>Everything you work with in AppleScript is an object.  The top-level object is the <span style="border:1px solid darkgray;padding:2px 3px;"><code>script</code></span> object&#8230;I do not really understand either, so let&#8217;s work through some example code.</p>
<p><a href="http://en.wikipedia.org/wiki/Pseudocode">Pseudocode</a>:</p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>function calculateMean(a,b) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return (a + b)/2<br />
}</code></span></p>
<p>Now when you call <span style="border:1px solid darkgray;padding:2px 3px;"><code>calculateMean(1,5)</code></span> you should get back 3 (because 1+5 = 6, divided by 2 is 3).  <span style="border:1px solid darkgray;padding:2px 3px;"><code>calculateMean()</code></span> would be considered a function in functional programming and, essentially, a method in object-oriented programming.  In AppleScript, calculateMean() is referred to as a <b>handler</b>.  The variables a and b are <b>parameters</b>.</p>
<p>Legit AppleScript Code:<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>property myName : "Ed"</p>
<p>on sayName(nameVariable)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display dialog ("Hi " &amp; nameVariable)<br />
end sayName</p>
<p>script testName<br />
	sayName(myName)<br />
end script</p>
<p>run testName<br />
sayName("Joe")<br />
</code></span></p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>sayName</code></span> is the handler.  When you are defining a handler, the <b>parameter</b> you put in is just a variable that represents whatever you may put in there.  So that parameter variable could have been any other variable name &#8211; it doesn&#8217;t matter.  The <span style="border:1px solid darkgray;padding:2px 3px;"><code>("Hi " &amp; nameVariable)</code></span> part is called <b>string concatenation</b>.  It basically just adds/joins the strings together.</p>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>script testName</code></span> seems to be a script inside a script (we call this <b>nested</b> script object(s) &#8211; and if inside a larger <span style="border:1px solid darkgray;padding:2px 3px;"><code>if</code></span> statement is a nested <span style="border:1px solid darkgray;padding:2px 3px;"><code>if</code></span> statement), that does not run unless we run it (as we did with the code, <span style="border:1px solid darkgray;padding:2px 3px;"><code>run testName</code></span>).  Notice the <span style="border:1px solid darkgray;padding:2px 3px;"><code>script testName</code></span> ends with <span style="border:1px solid darkgray;padding:2px 3px;"><code>end script</code></span> and not <span style="border:1px solid darkgray;padding:2px 3px;"><code>end testName</code></span>.</p>
<p>And lastly, <span style="border:1px solid darkgray;padding:2px 3px;"><code>sayName("some string")</code></span> is how to run a handler.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=51&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/08/12/day-4-some-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Day 3 Repeat Loops</title>
		<link>http://4pplescript.wordpress.com/2008/08/12/day-3-repeat-loops/</link>
		<comments>http://4pplescript.wordpress.com/2008/08/12/day-3-repeat-loops/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 17:16:09 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[applescript documentation]]></category>
		<category><![CDATA[applescript loop]]></category>
		<category><![CDATA[applescript tutorial]]></category>
		<category><![CDATA[command exit]]></category>
		<category><![CDATA[command lookup]]></category>
		<category><![CDATA[default answer]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[introductory guide]]></category>
		<category><![CDATA[learning applscript]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[repeat loop]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=48</guid>
		<description><![CDATA[Repeat will loop forever unless given extra parameters (parameters is essentially extra instructions). repeat &#160;&#160;&#160;&#160;&#160;-- code to repeat goes here end repeat You can break out of a repeat loop by using the command exit repeat coupled with an if ... then statement. Example code of repeating a display dialog until some text is answered: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=48&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Repeat will loop forever unless given extra parameters (parameters is essentially extra instructions).<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>repeat</code></span><br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- code to repeat goes here</code></span><br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>end repeat</code></span></p>
<p>You can break out of a repeat loop by using the command <span style="border:1px solid darkgray;padding:2px 3px;"><code>exit repeat</code></span> coupled with an <span style="border:1px solid darkgray;padding:2px 3px;"><code>if ... then</code></span> statement.</p>
<p>Example code of repeating a <span style="border:1px solid darkgray;padding:2px 3px;"><code>display dialog</code></span> until some text is answered:</p>
<p style="border:1px solid darkgray;padding:2px 3px;"><code>repeat<br />
&nbsp;&nbsp;&nbsp;&nbsp;display dialog "Enter name:" default answer ""<br />
&nbsp;&nbsp;&nbsp;&nbsp;set theName to text returned of result<br />
&nbsp;&nbsp;&nbsp;&nbsp;if not theName = "" then exit repeat<br />
end repeat<br />
</code></p>
<p><a href="http://www.mactech.com/articles/mactech/Vol.20/20.12/RepeatLoops/index.html">Using Repeat Loops in AppleScript</a></p>
<p>Wondering what options are available for commands, such as <span style="border:1px solid darkgray;padding:2px 3px;"><code>display dialog</code></span>?  <a href="http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html">Check out Apple&#8217;s documentation.</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=48&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/08/12/day-3-repeat-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Day 2: Actual Programming</title>
		<link>http://4pplescript.wordpress.com/2008/08/07/day-2-actual-programming/</link>
		<comments>http://4pplescript.wordpress.com/2008/08/07/day-2-actual-programming/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 00:13:36 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript language guide]]></category>
		<category><![CDATA[applescript tutorial]]></category>
		<category><![CDATA[assignment statements]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[chapter 3]]></category>
		<category><![CDATA[continuation character]]></category>
		<category><![CDATA[different types of variables]]></category>
		<category><![CDATA[guide pdf]]></category>
		<category><![CDATA[hyphens]]></category>
		<category><![CDATA[learning appscript]]></category>
		<category><![CDATA[naming convention]]></category>
		<category><![CDATA[pound symbol]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script editor]]></category>
		<category><![CDATA[type comments]]></category>
		<category><![CDATA[types of variables]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vertical bars]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=36</guid>
		<description><![CDATA[Day 2. I already ditched that old chapter 3 link that I was using in Day 1 for the AppleScript Language Guide (PDF). This is going to be a run-through of all types of basic information you need to know in order to script in AppleScript. And I&#8217;ll admit Day 1&#8242;s post was boring but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=36&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Day 2.  I already ditched that old chapter 3 link that I was using in Day 1 for the <a href="http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScriptLanguageGuide.pdf">AppleScript Language Guide</a> (PDF).  This is going to be a run-through of all types of basic information you need to know in order to script in AppleScript.</p>
<p>And I&#8217;ll admit Day 1&#8242;s post was boring but basics are essential.  Sorry about that.</p>
<p><a name="identifier"><br />
<h3>Identifier</h3>
<p></a><br />
Identifier is basically a name for classes, variables, etc.  It <b>must begin with a letter</b> and must be made from the following characters:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_</p>
<p><b>Not case-sensitive</b> so if <span style="border:1px solid darkgray;padding:2px 3px;"><code>myName</code></span> is used first and then <span style="border:1px solid darkgray;padding:2px 3px;"><code>Myname</code></span> is used, then while the script is compiling, <span style="border:1px solid darkgray;padding:2px 3px;"><code>Myname</code></span> will be changed to <span style="border:1px solid darkgray;padding:2px 3px;"><code>myName</code></span>.</p>
<p>Exception: Place vertical bars (| &#8211; the button above the enter key) around the identifier to contain any characters.  Every other time you use/call the identifier, include the vertical bars.<br />
<span id="more-36"></span><br />
<a name="comments"><br />
<h3>Comments</h3>
<p></a><br />
<b>Block comment</b> is a multi-line comment.<br />
Start: <span style="border:1px solid darkgray;padding:2px 3px;"><code>{*</code></span><br />
End: <span style="border:1px solid darkgray;padding:2px 3px;"><code>*)</code></span><br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>{* A very<br />
long comment spread out<br />
over many lines<br />
*)<br />
</code></span></p>
<p>End-of-line comment is a one-line/single-line comment.<br />
2 hyphens at the start: <span style="border:1px solid darkgray;padding:2px 3px;"><code>-- single line comment</code></span><br />
or<br />
Pound symbol (starting in version 2.0): <span style="border:1px solid darkgray;padding:2px 3px;"><code># unix/python/perl -type comments</code></span></p>
<p><a name="continuation"><br />
<h3>Continuation Character</h3>
<p></a><br />
¬ This character can be entered by typing <span style="border:1px solid darkgray;padding:2px 3px;"><code>Option + L</code></span> or Option-Return in Script Editor.  What it does is extend the statement onto a new line (because it is too long or for making code more readable).</p>
<p><a name="lists"><br />
<h3>Lists</h3>
<p></a><br />
Lists are a collection of values (or identifiers).  Lists, in AppleScript can contain all different types of variables including other lists.<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>{1, 5.5, "Hello", {1,2,3}}</code></span></p>
<p><a name="variables"><br />
<h3>Variables</h3>
<p></a><br />
Same naming convention as <a href="#identifier">identifier&#8217;s</a> naming convention.  Variables are initialized in 2 ways:<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>set <i>variable</i> to <i>value</i></code></span><br />
or<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>copy <i>value</i> to <i>variable</i></code></span><br />
These are known as <b>assignment statements</b>.  Variables can also take on values of any class.  This means that a value can start off as an integer but become a boolean by simply assigning a boolean value (true or false) to the variable.</p>
<p><a href="http://www.macobserver.com/tips/applescript/2002/20020529.shtml">Apparently</a>, there is an important (?) difference between variables and properties&#8230; I don&#8217;t understand but please <a href="http://www.macobserver.com/tips/applescript/2002/20020529.shtml">try</a> and let me know how it went.</p>
<p><a name="records"><br />
<h3>Records</h3>
<p></a><br />
A record in AppleScript is like a dictionary in Python.  They include labels and values.<br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>set dict to {names: "Ed",  prices: {100,25}}</code></span><br />
To call &#8220;Ed&#8221;, refer to it as <span style="border:1px solid darkgray;padding:2px 3px;"><code>names of dict</code></span></p>
<p><a name="expressions"><br />
<h3>Expressions</h3>
<p></a><br />
<span style="border:1px solid darkgray;padding:2px 3px;"><code>4 + 7 &nbsp;&nbsp;# sum of which is 11</code></span>.  This is an expression.  When the script is run, AppleScript will convert the expression into values (known as <b>evaluation</b>).</p>
<p>
Ed</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=36&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/08/07/day-2-actual-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>
	</item>
		<item>
		<title>Day 1: Complete Basics</title>
		<link>http://4pplescript.wordpress.com/2008/08/05/day-1-complete-basics/</link>
		<comments>http://4pplescript.wordpress.com/2008/08/05/day-1-complete-basics/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 21:38:38 +0000</pubDate>
		<dc:creator>koldfyre</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[applescript tutorial]]></category>
		<category><![CDATA[chapter 3]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[guide manuals]]></category>
		<category><![CDATA[introductory guide]]></category>
		<category><![CDATA[language program]]></category>
		<category><![CDATA[learn script]]></category>
		<category><![CDATA[quicksilver]]></category>
		<category><![CDATA[script editor]]></category>
		<category><![CDATA[script files]]></category>
		<category><![CDATA[spotlight]]></category>
		<category><![CDATA[toc]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[verbs]]></category>

		<guid isPermaLink="false">http://4pplescript.wordpress.com/?p=5</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;The first step in learning any language/program is&#8230; Google. So I did a Google search and I decided to start with T&#38;B&#8217;s AppleScript tutorial. I glanced through the Table of Contents (TOC) and figured starting at Chapter 3 would be good: AppleScript Tutorial Chapter 3 OK, actually, I lied. The first thing you should do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=5&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The first step in learning any language/program is&#8230; Google.  So I did a Google search and I decided to start with T&amp;B&#8217;s AppleScript tutorial.  I glanced through the Table of Contents (TOC) and figured starting at Chapter 3 would be good:<br />
<a href="http://www.tandb.com.au/applescript/tutorial/03/">AppleScript Tutorial Chapter 3</a></p>
<p>OK, actually, I lied.  The first thing you should do is see if you can get resources from the company that made the language/program:</p>
<ul>
<li><a href="http://www.apple.com/applescript/">AppleScript Main Page</a></li>
<li><a href="http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html">Introductory Guide</a></li>
<li><a href="http://docs.info.apple.com/article.html?artnum=50096">Manuals</a></li>
</ul>
<p></p>
<h3>Dictionary</h3>
<p>AppleScript-ing is done in <b>Script Editor</b> (just search for it in Spotlight or QuickSilver) and is located in /Applications/AppleScript (go figure).  So, AppleScript is very English-like and to know which words actually work, we need to open up a dictionary of whatever app we are trying use in our AppleScript.<span id="more-5"></span></p>
<div id="attachment_6" class="wp-caption aligncenter" style="width: 490px"><a href="http://4pplescript.files.wordpress.com/2008/08/picture-5.png"><img src="http://4pplescript.files.wordpress.com/2008/08/picture-5.png?w=510" alt="Need-to-know Terms"   class="aligncenter size-full wp-image-6" /></a><p class="wp-caption-text">Need-to-know Terms</p></div>
<p></p>
<p style="background:#333;border:1px dotted #bdbdbd;padding:2px 10px;">To open an application&#8217;s dictionary, just drag the application onto the Script Editor dock icon.</p>
<div id="attachment_15" class="wp-caption aligncenter" style="width: 173px"><a href="http://4pplescript.files.wordpress.com/2008/08/drag.png"><img src="http://4pplescript.files.wordpress.com/2008/08/drag.png?w=163&#038;h=133" alt="Drag&#38;Drop for Opening Dictionary" width="163" height="133" class="aligncenter size-medium wp-image-15" /></a><p class="wp-caption-text">Drag&amp;Drop for Opening Dictionary</p></div>
<p></p>
<p>Or if you <del datetime="00">are civilized</del> have Quicksilver:<br />
<div id="attachment_16" class="wp-caption aligncenter" style="width: 310px"><a href="http://4pplescript.files.wordpress.com/2008/08/quicksilver.png"><img src="http://4pplescript.files.wordpress.com/2008/08/quicksilver.png?w=300&#038;h=129" alt="Being civilized." width="300" height="129" class="aligncenter size-medium wp-image-16" /></a><p class="wp-caption-text">Being civilized.</p></div></p>
<p>And the dictionary looks like this:</p>
<p><a href="http://4pplescript.files.wordpress.com/2008/08/dictionary.png"><img src="http://4pplescript.files.wordpress.com/2008/08/dictionary.png?w=299&#038;h=300" alt="" width="299" height="300" class="aligncenter size-medium wp-image-17" /></a></p>
<p>If you browse through <b>QuickTime Player Suite</b> you&#8217;ll see various entries, I am mainly seeing verbs and nouns which translate to commands and classes (don&#8217;t know what classes and objects?  that&#8217;s OK, they&#8217;re coming up).</p>
<p>And it is good to know that script files extensions are &#8220;.scpt&#8221;</p>
<p>Now let&#8217;s start delving into some code!</p>
<h3>Setting a Property</h3>
<p><span style="border:1px solid darkgray;padding:2px 3px;"><code>set</code></span> <i>property</i> <span style="border:1px solid darkgray;padding:2px 3px;"><code>of</code></span> <i>object</i> <span style="border:1px solid darkgray;padding:2px 3px;"><code>to</code></span> <i>value</i>.<br />
The words in italics will need to be replaced with specific names/variables/values.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/4pplescript.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/4pplescript.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/4pplescript.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/4pplescript.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/4pplescript.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=4pplescript.wordpress.com&amp;blog=4425445&amp;post=5&amp;subd=4pplescript&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://4pplescript.wordpress.com/2008/08/05/day-1-complete-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb5a95cb1be342c4089183cd8232a7f2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">koldfyre</media:title>
		</media:content>

		<media:content url="http://4pplescript.files.wordpress.com/2008/08/picture-5.png" medium="image">
			<media:title type="html">Need-to-know Terms</media:title>
		</media:content>

		<media:content url="http://4pplescript.files.wordpress.com/2008/08/drag.png?w=163" medium="image">
			<media:title type="html">Drag&#38;Drop for Opening Dictionary</media:title>
		</media:content>

		<media:content url="http://4pplescript.files.wordpress.com/2008/08/quicksilver.png?w=300" medium="image">
			<media:title type="html">Being civilized.</media:title>
		</media:content>

		<media:content url="http://4pplescript.files.wordpress.com/2008/08/dictionary.png?w=299" medium="image" />
	</item>
	</channel>
</rss>
