2012-08-02 1 views
2

응용 프로그램 자동화 파일을 사용하여 변수 file으로 설정된 파일을받은 다음 Ask For Text를 사용하여 name이라는 변수를 설정합니다.Mac automator : 쉘 및 울림 알림에서 변수 사용

나는 두 장소에서 이것을 사용할 필요가 : 나는 많은 조합을 시도했습니다

으르렁 거리는 소리 알림에서

  1. 쉘 스크립트
  2. 하지만 난에 변수를 얻을 수 없다 둘 중 하나에서 일하십시오. 올바른 구문은 무엇입니까? 당신의 자동화 워크 플로우이 추가

답변

0

시도 :

on run {input, parameters} 
    -- Get name from automator 
    tell application "Finder" to set theName to name of file input 

    -- pass name into shell script and get variable back 
    set xxx to do shell script "echo " & theName 

    display dialog xxx 
end run 

enter image description here

-1

당신은 그나마 모든 스크립트를 입력해야합니다. 당신이 Growl 응용 프로그램에 가면, 마우스 오른쪽 버튼을 클릭하고, 내용을 표시합니다. 내용 ---> 라이브러리 -> 자동화

두 번 클릭하면 Automator에 추가 작업이 추가됩니다. Enjoy;)

+0

감사합니다.하지만 변수를 사용하는 것은 아닙니다. – Ashley