On 3 mai 11, at 13:27, Jerry Krinock wrote: > > On 2011 Apr 30, at 19:45, Jim Thomason wrote: > >> Can I provide a service with optional input? >> >> I want the user to be able to call the service with a text string input, but >> it's also reasonable to call it w/o any input at all. > >> Any ideas about how I can implement it? > > Since no one else replied, I'm fairly confident in saying "No". My reading > of the documentation is that the ill-named "Services" in Mac OS X are > designed very narrowly, for one purpose only: processing strings.
Sure, but you can process strings that are input from the selection (which is what Jim means if I am correct) or strings that either are created out of the blue from within the service or that come from other input devices (files etc). In the case of Automator generated services, there is no possibility to provide the option Jim wants and I would not be surprised if it were the case for all the services: either the service is set to work on the selection (which can be anything from a text string to a movie file) or not. Jean-Christophe Helary ---------------------------------------- fun: http://mac4translators.blogspot.com work: http://www.doublet.jp (ja/en > fr) tweets: http://twitter.com/brandelune _______________________________________________ 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