On 6 Jun 2009, at 15:05, Ammar Ibrahim wrote:
On Sun, Jun 7, 2009 at 12:29 AM, Andrew Farmer <andf...@gmail.com> wrote:

Given downloadFilePath /foo/bar/baz, this'll create a file called " baz" - with a leading space. Either use "-o%@" or use two separate arguments.

Thanks that fixed it! Although when you call it directly from the command
line, it's fine to have the space there!

No, it's not. Invoking NSTask with an argument like that is equivalent to typing:

curl -s "-o foo" http://url/


which is not equivalent to

curl -s -o foo http://url/
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to