2013-11-20 117 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 
... 
相关问题