Q
Noob茫然無望
-3
A
回答
0
我沒有測試這一點,但快看這裏以後就是我的想法。將「on main(pdfFile)」處理程序中的此部分更改爲以下內容...
-- Go through the sorted list, counting the instances of each word. Store each word and its score in a list in the 'scores' list in the script object above.
set wordsToIgnore to {"and", "the", "a", "for", "in", "is"}
set currentWord to item 1 of o's wrds
set c to 1
repeat with i from 2 to (count o's wrds)
set thisWord to item i of o's wrds
if thisWord is not in wordsToIgnore then
if (thisWord is currentWord) then
set c to c + 1
else
set end of o's scores to {currentWord, c}
set currentWord to thisWord
set c to 1
end if
end if
end repeat
set end of o's scores to {currentWord, c}
+0
先生,你是一個紳士和學者。多謝。 – DrLulz
+0
我剛剛注意到你是上面的macscripter線程中的原始海報之一。挺酷的。再次感謝。 – DrLulz
+0
是的,不幸的是,該線程中腳本中的「調用方法」代碼不再有效。因此,您需要使用第三方應用程序(Skim)從pdf中提取文本。但它的工作。樂意效勞。祝你好運。 – regulus6633
相關問題
- 1. 「茫然地使用'下標'」
- 2. PHP是迷茫
- 3. 茫然......不知道爲什麼XCode 6.1無法編譯我的C++程序
- 4. 迷茫中調用
- 5. 迷茫「讓」 Clojure中
- 6. 指針數組迷茫
- 7. 迷茫中的HashMap和Hashtable
- 8. 迷茫中的Oracle命名
- 9. 迷茫中連接查詢
- 10. 輸出的程序((迷茫))
- 11. 迷茫中的#import VS @class
- 12. 所有承諾迷茫
- 13. 郵政路線渺茫PHP
- 14. JSON.NET - 迷茫中從JToken
- 15. JDBCJobStore迷茫中石英Schdular
- 16. 迷茫中的SQLite版本
- 17. JMeter無法登錄到網站 - JMeter noob
- 18. Noob applescript curl
- 19. Noob ASM問題
- 20. Google Glassware Noob
- 21. JavaScript Arrays noob
- 22. noob javascript遞歸
- 23. Flex noob問題
- 24. Date Picker noob
- 25. MySQL和ADO - 無望?
- 26. 雖然不指望一個數組
- 27. noob:顯示err_msg第
- 28. MySQL錯誤#1064 - Noob
- 29. Python的noob循環?
- 30. Django + alwaysdata.com Noob問題
爲什麼要添加另一組?爲什麼不擴展現有的? – Dair
我沒有看到哪裏有電流忽略列表,但是這可能是因爲我不知道我在看你。我已經看了幾個小時,但這些都是我不知道的。建議? – DrLulz
引述如何提問智能路:卑躬屈膝是不是做功課的替代品(http://www.catb.org/esr/faqs/smart-questions.html#idp54052224)。 –