我從網站上的數據庫中提取數據的列表,的AppleScript:複製一個列表的所有項目在剪貼板
我怎麼能去設置項目的結果在我的列表中剪貼板,排除第一個結果只是錯誤的鏈接
如何在Chrome中使用此腳本代替Safari?
集dataINeedList我getInputByClass2( 「排序dataPersonId」,1) - 獲得第十值,用這個 - >項目10 ALLDATA
to getInputByClass2(theClass) -- this return a list of values tell application "Safari" set r to do JavaScript "var outPut=[]; var arr=document.getElementsByClassName('" & theClass & "');for (var i in arr) {outPut.push(arr[i].innerHTML)};outPut;" in document 1 end tell return strings of r --- this remove all 'Missing Value' from a list of strings end getInputByClass2 set listSize to count of dataINeedList ## number of dataINeed founds set theResult to item 2 of dataINeedList ##repeat with theItem in dataINeedList ## not working ## set the clipboard to theItem ## ##end repeat ##
對於第二個問題,您已經提出了這個問題。檢查答案:[這個問題](http://stackoverflow.com/questions/37299708/applescript-use-google-chrome-to-extract-text) – jackjr300