• 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
Re: convert text data to PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert text data to PDF


  • Subject: Re: convert text data to PDF
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 17 Sep 2015 09:49:07 +1000

On 17 Sep 2015, at 3:12 AM, Yvan KOENIG <email@hidden> wrote:

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.

All you have there is simple AppleScript text. You can put that into a PDF, but I suspect that what the OP wants is something that looks like what he sees in Notes -- and that's not what you're going to get. Any styling information has been thrown out.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Yvan KOENIG <email@hidden>
References: 
 >convert text data to PDF (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Does this work for anyone in Yosemite?
  • Next by Date: Re: List Files Sorted by Last-Added Date
  • Previous by thread: convert text data to PDF
  • Next by thread: Re: convert text data to PDF
  • Index(es):
    • Date
    • Thread