Cocoa Automator Action with Empty Input?
Cocoa Automator Action with Empty Input?
- Subject: Cocoa Automator Action with Empty Input?
- From: Sanford Selznick <email@hidden>
- Date: Tue, 20 Mar 2007 23:42:37 -0700
Hello,
I'm writing a Cocoa Automator Action. The input argument to
runWithInput: appears to be an invalid class of some sort. When I
print [input className] to the console I get the following message:
Automator[7524] Exception raised during posting of notification.
Ignored. exception: [<AMAppleScriptAction 0x13de7d0>
removeObserver:<AMDocument 0x13c1b000>
forKeyPath:@"parameters.temporary items path"] was sent to an object
that has no observers.
When I po [input className] in gdb, I get NSCFString. If I replace
my Automator action in my workflow with another action that has text
input and output (like mine), it works fine.
Why is input a "dud" object?
Thanks,
Sanford
PS -
== Input type in plist:
<key>AMAccepts</key>
<dict>
<key>Container</key>
<string>Single</string>
<key>Optional</key>
<false/>
<key>Types</key>
<array>
<string>com.apple.cocoa.string</string>
</array>
</dict>
== Output type in plist:
<key>AMProvides</key>
<dict>
<key>Container</key>
<string>Single</string>
<key>Types</key>
<array>
<string>com.apple.cocoa.string</string>
</array>
</dict>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden