AMPathPopupButton (Set to allow the user to choose directories -
new or existing)
1. When my action comes up, the popup defaults to Desktop. However,
when I query my parameters, the value for the bound key is nil.
In my experience, you have to set a default value in the Info.plist.
Otherwise nothing gets returned in the parameters if the value
doesn't change. Bug? I don't know...
2. The popup allows the user to create a new folder and use that.
However, when my code gets the value, the new folder doesn't exist
- so I have to create it in these cases. Is this the way
AMPathPopupButton is supposed to work? Seems like if it allows the
user to specify the name of a new folder, it should create it for me?
Isn't that a flag you can set in IB?
3. It doesn't look like AMPathPopupButton is in the documentation?
(All I can find when I search the docs on my machine is the
bindings reference for this class) Am I just missing it?
That's all there is...
Error reporting
1. The Automator documentation says that an Objective-C action
should return an error dictionary containing two keys:
OSAScriptErrorNumber and OSAScriptErrorMessage. <snip> So can I
assume that NSAppleScriptErrorMessage and NSAppleScriptErrorNumber
are OK to use? Should the docs be updated to this effect (and/or
should I report a doc bug on this)?
They are found in the OSAKit framework. But it is odd indeed.
Build Warning:
1. The default template for set my AMName to the same as my project
and main class "DownloadColorFieldImages". I changed my AMName (and
the localized version) to include spaces: "Download Color Field
Images". However, the final step in the build process now gives me
a warning:
`man amlint` will tell you what to do. It's referenced in the Run
Shell step of the build target.
Also, related to your Cocoa and UTI's question: the only supported
environment for this is AppleScript. I've had a lot of trouble with
Cocoa actions and UTIs. You can do it but you would have to use
NSAppleEventDescriptors to send out other datatypes.
Cheers!
Annard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/automator-dev/email@hidden