<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,6 +64,7 @@ unsigned long ASPluginAppClassCode() {
 		NSAppleEventDescriptor *desc = [NSAppleEventDescriptor appleEventWithEventClass:ASPluginAppClassCode() eventID:ASPluginPropertyEventCode targetDescriptor:procDesc returnID:kAutoGenerateReturnID transactionID:kAnyTransactionID];
 		id err = nil;
 		NSAppleEventDescriptor *ret = [as executeAppleEvent:desc error:&amp;err];
+		NSLog(@&quot;%s %@&quot;, _cmd, err);
 		if (ret)
 		{
 			NSString *property = [ret stringValue];
@@ -79,7 +80,7 @@ unsigned long ASPluginAppClassCode() {
 -(NSArray *)extensions { return [NSArray arrayWithObject:@&quot;scpt&quot;]; }
 -(NSArray *)pluginsForProperty:(NSString *)property forValue:(id)forValue withValue:(id)withValue
 {
-	if ([self plugins]) [self build];
+	if (![self plugins]) [self build];
 	NSArray *arr = [[self plugins] objectForKey:property];
 	if (!arr || ![arr count]) return nil;
 	
@@ -94,6 +95,7 @@ unsigned long ASPluginAppClassCode() {
 	while (as = [e nextObject])
 	{
 		NSAppleEventDescriptor *enabledDesc = [as executeEvent:ASPluginEnableEventCode eventClass:ASPluginAppClassCode() parameters:parameters];
+		NSLog(@&quot;%s %@&quot;, _cmd, enabledDesc);
 		if (enabledDesc &amp;&amp; [enabledDesc booleanValue])
 		{
 			NSAppleEventDescriptor *desc = [as executeEvent:ASPluginTitleEventCode eventClass:ASPluginAppClassCode() parameters:parameters];</diff>
      <filename>src/ApplescriptPluginManager.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a6afb6a7390920bcf4b00138f9b45e194aa1441e</id>
    </parent>
  </parents>
  <author>
    <name>Grayson Hansard</name>
    <email>info@fromconcentratesoftware.com</email>
  </author>
  <url>http://github.com/Grayson/pluginmanager/commit/9a8d061238b081a7e0ff4e84e808e079e29773bc</url>
  <id>9a8d061238b081a7e0ff4e84e808e079e29773bc</id>
  <committed-date>2009-03-13T13:54:41-07:00</committed-date>
  <authored-date>2009-03-13T13:54:41-07:00</authored-date>
  <message>Fixes a dumb bug in loading Applescript scripts.</message>
  <tree>57274326a8330f1b097b6360eacf01e26b9bfc6c</tree>
  <committer>
    <name>Grayson Hansard</name>
    <email>info@fromconcentratesoftware.com</email>
  </committer>
</commit>
