2017-01-30 1 views
0

스크립트는 "osascript Export \ Library.scpt/Users/bryandunphy/Development/iTunesLibraryConsolidator 테스트"와 함께 호출됩니다.Export Library.scpt : 실행 오류 : 창 1의«class txtf»1의«class valL»을 "testing"으로 설정할 수 없습니다. (-10006)

마지막 줄에 오류가 발생합니다.

on run (clp) 
    if clp's length is not 2 then error "Incorrect Parameters" 
    local destination, libraryName 
    set destination to clp's item 1 
    set libraryName to clp's item 2 
    menuClick({"iTunes", "File", "Library", "Export Library…"}) 
    set the value of the front window's text field 1 to libraryName 

답변

0

이 스크립트는 맥 OS 시에라을 iTunes를 사용하여 12.5.5.5에서 작동합니다 :

tell application "System Events" to set value of text field "Save As:" of window "iTunes" of application process "iTunes" to "yourNewLibraryName" 

을 또는 당신의 변수에 조정 :

tell application "System Events" to set value of text field "Save As:" of window "iTunes" of application process "iTunes" to libraryName 
다음

는 관련 코드

그런데 text field 1도 사용할 수 있습니다.

이 기능이 유용합니까?

+0

네, 완벽하게 저는 EL Capitan을 iTunes 12.5.5와 함께 실행하고 있습니다. –