• 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 20:35:26 +0200


Le 27 juin 2011 à 19:44, ilsa a écrit :


Thank you all! My results so far:

- sips looked good, but it doesn't work. This script simply returns
the two unix paths in the Script Editor, with no file written:

set my_source to "Macintosh HD:Users:ILC:Desktop:DV-110606a:2011-06-06
12-17-07_IMAGE000_102.tiff"
set my_dest to "Macintosh HD:Users:ILC:Desktop:DV-110606a:2011-06-06
12-17-07_IMAGE000_102.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

- The Preview script always errors out, not recognizing that or that.

Looks like I will have to learn this drawimage command in Smile, now
that I know it is possible!  :)

Thanks again,

I ran this script without any kind of problem

--[SCRIPT]
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
--[/SCRIPT]

I wrote also this one without any kind of problem:

--[SCRIPT]
set tiff_file to POSIX file "/path/to/tiff/file/my_file.tiff" as alias
tell application "Finder"
set file_name to name of tiff_file
end tell
tell application "Preview"
open tiff_file
activate
tell application "System Events"
tell process "Preview"
set w_names1 to name of windows
--click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1
keystroke "p" using {command down}
click menu button "PDF" of sheet 1 of window file_name
click menu item 2 of menu 1 of menu button "PDF" of sheet 1 of window file_name
repeat
if (count of windows) > (count of w_names1) then exit repeat
delay 0.1
end repeat
(*
set b_name to name of window 1
click button b_name of window b_name
*)
click button 4 of window 1
end tell
end tell
end tell
--[/SCRIPT]

Yvan KOENIG (VALLAURIS, France) lundi 27 juin 2011 20:32:47


 _______________________________________________
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: ilsa <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