• 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:05:57 +0200

Le 27 juin 2011 à 14:45, Dmitry Markman a écrit :

> tell application "Preview"
> 	open tiff_file
> 	activate
> 	tell application "System Events"
> 		tell process "Preview"
> 			click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1
> 			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
> 			click button "Save" of window "Save"
> 		end tell
> 	end tell
> end tell


For those which aren't running their system in English, I would code :

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

Yvan KOENIG (VALLAURIS, France) lundi 27 juin 2011 15:05:51



 _______________________________________________
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: TIFF to PDF - easiest way?
      • From: Dmitry Markman <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: Dmitry Markman <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