• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Service with optional input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Service with optional input


  • Subject: Re: Service with optional input
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Tue, 03 May 2011 13:54:05 +0900

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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Re: Service with optional input (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Service with optional input
  • Next by Date: Position of baseline in text view
  • Previous by thread: Re: Service with optional input
  • Next by thread: Position of baseline in text view
  • Index(es):
    • Date
    • Thread