2012-07-28 3 views
1

응용 프로그램 내에서 Automator 동작을 실행하려고하면 오류가 발생합니다. 나는 그것을 봉사로 세웠다. 내가 자동화 내에서 실행할 때 작동하지만이 서비스를 호출 할 때 그것은 나에게 읽는 대화 오류 제공 : Apple Automator Applescript "동작을 연결할 수 없습니다"라는 오류가 발생했습니다.

The action "Run AppleScript encountered an error" 

내가 로그를 확인하고 전체 오류가 밝혀 :

12-07-28 1:03:01.319 PM com.apple.automator.xpc.workflowServiceRunner: Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.319 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.317 WorkflowServiceRunner[77170:1707] Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.319 PM com.apple.automator.xpc.workflowServiceRunner: Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.320 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.318 WorkflowServiceRunner[77170:1707] Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.320 PM com.apple.automator.xpc.workflowServiceRunner: Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.320 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.319 WorkflowServiceRunner[77170:1707] Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.321 PM com.apple.automator.xpc.workflowServiceRunner: Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.321 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.320 WorkflowServiceRunner[77170:1707] Could not connect the action buttonPressed: to target of class NSApplication 
12-07-28 1:03:01.358 PM com.apple.automator.xpc.workflowServiceRunner: -[AMApplicationRegistry loadDefinitionAtURL:]: No application name for definition at URL file://localhost/Library/Automator/Office.definition/ 
12-07-28 1:03:01.358 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.356 WorkflowServiceRunner[77170:1707] -[AMApplicationRegistry loadDefinitionAtURL:]: No application name for definition at URL file://localhost/Library/Automator/Office.definition/ 
12-07-28 1:03:01.358 PM com.apple.automator.xpc.workflowServiceRunner: -[AMApplicationRegistry _loadDefinitionsAtURLS:]: Failed to load definition at URL file://localhost/Library/Automator/Office.definition/ 
12-07-28 1:03:01.358 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:01.357 WorkflowServiceRunner[77170:1707] -[AMApplicationRegistry _loadDefinitionsAtURLS:]: Failed to load definition at URL file://localhost/Library/Automator/Office.definition/ 
12-07-28 1:03:06.787 PM com.apple.automator.xpc.workflowServiceRunner: WorkflowServiceRunner received error running Workflow Service at /Users/juan/Library/Services/Lookup Citation.workflow: The action “Run AppleScript” encountered an error. 
12-07-28 1:03:06.787 PM com.apple.automator.xpc.workflowServiceRunner: 2012-07-28 13:03:06.786 WorkflowServiceRunner[77170:1707] WorkflowServiceRunner received error running Workflow Service at /Users/juan/Library/Services/Lookup Citation.workflow: The action “Run AppleScript” encountered an error. 

내 워크 플로우 here을 볼 수

은 두 부분으로 구성되어 있습니다 : 1에 "텍스트 요청"조치 2) (1)에서 텍스트를 취하는 "실행 AppleScript로"동작은 함께 일을) 그런 다음 사용자에게 t o "목록에서 선택"

다시 Automator에서이 기능을 모두 실행해도 작동하지만 응용 프로그램 내에서 서비스로 호출하면 실패합니다.

추신 : 한번 해결되면, 나는 "텍스트 요청"대화 상자로 포커스를 옮겨서 액션을 시작하고 내 대답을 입력 할 수 있도록 도움을받을 것입니다.

답변

0

무엇을했는지는 확실하지 않지만 현재 작동 중입니다.

제가 생각할 수있는 유일한 것은 Automator를 닫았습니다.

0

최근 Automator 서비스에서 같은 오류 메시지가 나타납니다. 이 문제는 AppleScript 코드에서 '종료 실행'후 Automator 자동 추가 "..."로 인해 발생했습니다. Applescript Editor에서 코드 완성 기능을 사용하도록 설정 했으므로 편집기에 제안 할 수있는 완성품이있을 때 3 개의 점이 표시되며 Automator에서도이를 수행합니다.

Automator를 닫은 후에 'Run Applescript'자동화 작업 창에서 '끝 실행'다음에 점을 추가하고있었습니다. 그래서 이것이 내 스크립트의 마지막 라인이었습니다 : "end run ..."그래서 나는 'run'다음에 공백을 추가했습니다.이 공백은 후행 기간을 제거하고 서비스는 이제 정상적으로 실행됩니다.

내가 겪고있는 문제인지 잘 모르겠지만 확인해 볼 가치가 있습니다. (실망한 문제입니다.)

관련 문제