2013-11-20 105 views
2
tell application "VoodooPad" 
    tell document 1 
     repeat with thisPage from 1 to number of items in pages 
      set theName to display name of page thisPage 
      set creationDate to created of page thisPage 
      set theText to text of page thisPage 
      tell application "Evernote" 
       create note with text theText title theName notebook "VoodooPad Imported Notes" tags "imported_from_VoodooPad" created creationDate 
      end tell 
     end repeat 
    end tell 
end tell 

這將產生以下錯誤:爲什麼這會拋出一個錯誤?

error "VoodooPad got an error: every item of every page of document 1 doesn’t understand the count message." number -1708 from every item of every page of document 1 

如何讓腳本運行任何想法?

+0

我剛剛下載的演示版本。它必須是那個「頁面」特別的東西。 「文檔1的頁面」不起作用。也許你可以問副總裁的支持! – 2013-11-21 16:12:56

回答

0

試試這個:

set allPages to pages as list // now you have items in a list 
repeat with thisPage from 1 to number of items in allPages 
... 
相關問題