Custom OSX service using an Automator action with 2 text input sources possible?

StackOverflow https://stackoverflow.com/questions/23583494

  •  19-07-2023
  •  | 
  •  

문제

I want to set up a custom OSX service, available in an app's services menu, that extracts an address from a web page, adds some user text input, and writes both infos as a new contact into the address book.
I do now the following:
On the web page, I mark part of the text containing the address. In Automator, I use "Separate text and data" from the text category, and extract the address.
The next step in Automator is an Obj-C action, developed in XCode, that inputs the address and converts it to a new contact entry of the address book.
This works, but I am not able to accept the additional user input. There is an action "Input text" in Automator's text category, but I don't know how to combine both text inputs (address & user input) as input to my Obj-C action.
EDIT:
Here is my Automator window:
enter image description here

도움이 되었습니까?

해결책

I don't have your Obj-C program here, but I can get two lots of text from the user and store them in two separate variables like this, so I presume you can pass both variables to your Obj-C, can't you?

Maybe seeing this will help someone else understand what you are trying to do...

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top