• 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: TIFF to PDF - easiest way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIFF to PDF - easiest way?


  • Subject: Re: TIFF to PDF - easiest way?
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 27 Jun 2011 15:56:56 +0200

Le 27 juin 2011 à 15:00, Mark J. Reed a écrit :

> If Preview were scriptable, it would probably be the easiest option, but yeah, since you have to resort to GUI scripting, not so much.
>
> Since the OP already has Smile, that would seem to be the way to go.
>
> But I'm a bit confused.  I thought sips was just a way to get to Image Events from the shell.  Shouldn't you be able to do anything that you can do with 'do shell script "sips ..."' by scripting Image Events directly?
>

Hello

Each time I tried to export as PDF thru ImageEvents, trying to opening the creating file issued :

Adobe Reader n'a pas pu ouvrir 2011_06_27.pdf, car le type de fichier n'est pas pris en charge ou le fichier est endommagé (il a été envoyé en tant que pièce jointe et n'a pas été décodé correctement, par exemple).

or
Impossible d'ouvrir le fichier «wxyz.pdf» Il est peut-être endommagé ou d’un format non reconnu par Aperçu.

On the other hand,

set p2d to path to desktop as text
set my_source to p2d & "4tester:Original Images:2011_06_27.tiff"
set my_dest to p2d & "4tester:PDF Images:2011_06_27.pdf"

do shell script "sips -s format pdf " & quoted form of POSIX path of my_source & " --out " & quoted form of POSIX path of my_dest

behave flawlessly.
CAUTION, this code doesn't  check if there is already such a PDF file.
If there is one, if will replace it by the newly created one.

Yvan KOENIG (VALLAURIS, France) lundi 27 juin 2011 15:56:44



 _______________________________________________
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

References: 
 >TIFF to PDF - easiest way? (From: ilsa <email@hidden>)
 >Re: TIFF to PDF - easiest way? (From: Dmitry Markman <email@hidden>)
 >Re: TIFF to PDF - easiest way? (From: Emmanuel LEVY <email@hidden>)
 >Re: TIFF to PDF - easiest way? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: TIFF to PDF - easiest way?
  • Next by Date: Re: TIFF to PDF - easiest way?
  • Previous by thread: Re: TIFF to PDF - easiest way?
  • Next by thread: Re: TIFF to PDF - easiest way?
  • Index(es):
    • Date
    • Thread