2011-08-01 3 views

답변

1

질문에 답글을 썼습니다.

tell application "System Events" to set adobe_windows to (get the title of every window of every process whose name contains "Adobe") as list 
set prevTIDs to AppleScript's text item delimiters 
set AppleScript's text item delimiters to {", "} 
set adobe_windows to adobe_windows as string 
display dialog adobe_windows 
set AppleScript's text item delimiters to prevTIDs 

창 제목과 관련하여 오류가 발생하면 System Events으로 이동합니다. 이것은 파인더에도 적용됩니다! System Events은 Finder에서 할 수있는 모든 작업을 처리 할 수 ​​있습니다. 질문이 있으면 그냥 물어보십시오. :)

+0

대단히 고맙습니다. AppleScript에 익숙하지 않으므로 더 자세히 조사 할 것입니다. (빈 문자열이 나옵니다. 그러나 당신을 귀찮게하기 전에 숙제를 할 것입니다.) 건배 – Pompon

+0

@ Pompon 스크립트를 실행하기 전에 Adobe가 실제로 열려 있는지 확인하십시오. 그렇지 않으면 빈 문자열을 반환합니다. Adobe가 실제로 열려 있고 여전히 * 빈 문자열로 반환되는 경우 알려 주시면 답변을 업데이트하겠습니다. :) – fireshadow52

+0

Adobe Reader가 열려 있고 스크립트가 빈 문자열을 반환하므로 도움을 주셔서 감사합니다 – Pompon