• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
convert text data to PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

convert text data to PDF


  • Subject: convert text data to PDF
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 16 Sep 2015 19:12:01 +0200

Hello

Trying to help an user I'm searching for a way to export the notes from Notes in PDF files.

I ran these instructions:
tell application "Notes"
activate
set noteBody to body of second note
end tell
set the clipboard to noteBody
clipboard info

and got :
{{Unicode text, 300}, {string, 150}, {scrap styles, 22}, {«class utf8», 150}, {«class ut16», 302}, {scrap styles, 22}}

When the clipboard contain PDF datas, writing them in a PDF file is easy.
Alas I found no way to convert the text into PDF datas.
At this time I export the notes in html files,
open them with Safari,
export from Safari to PDF.

I know that there is an "Export to PDF" menu item in Notes but I don't find a way to switch from a note to an other one to export them one by one.

Before trying to use GUIScripting to navigate in the notes I just wish to ask if there is a tool - which I missed - to convert text into PDF datas.

Yvan KOENIG (VALLAURIS, France) mercredi 16 septembre 2015 19:11:55


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: convert text data to PDF
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Does this work for anyone in Yosemite?
  • Next by Date: List Files Sorted by Last-Added Date
  • Previous by thread: Re: Does this work for anyone in Yosemite?
  • Next by thread: Re: convert text data to PDF
  • Index(es):
    • Date
    • Thread