Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. set this_folder to ""
  2. set export_folder to ""
  3. set these_files to every file of folder this_folder whose name extension is "pdf"
  4. end tell
  5. repeat with i from 1 to the count of these_files
  6. set this_file to (item i of these_files as alias)
  7. set fileName to name of item i of these_files
  8. set savePath to export_folder & ":" & fileName & ".md"
  9. tell application "Skim"
  10. open this_file
  11. try
  12. convert notes document 1 with waiting
  13. end try
  14. if (count of notes in document 1) > 0 then
  15. save document 1 in savePath as "Notes as Markdown"
  16. end if
  17. close document 1 saving no
  18. end tell
  19. log i
  20. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement