Re: Print to PDF
Re: Print to PDF
- Subject: Re: Print to PDF
- From: Luther Fuller <email@hidden>
- Date: Tue, 10 Jan 2012 11:20:49 -0600
On Jan 10, 2012, at 9:36 AM, KOENIG Yvan wrote: Here the code which I use. It's localization free.
I took a long look at your code, but encountered a problem. My code looks like yours until I get near the end ...
tell application "System Events" tell process "Mail" -- -- --
(* Set the name of the new PDF *) set value of text field 1 of window 1 to "beurk.pdf" -- name of buttons of window 1 --> {missing value, missing value, missing value, "Enregistrer", "Nouveau dossier", "Annuler"} click button -3 of window 1 end tell end tell
The line set value of text field 1 of window 1 to "beurk.pdf" is unnecessary in my case, since it's default value is the name of the message window, which is already correct in my script.
I have an alias to the original .emlx file that I want to save as pdf and I want to save the pdf in the same location. If I can't save to the container of the original .emlx file, then I need to save to a location such as 'temporary items'.
But setting the value of the "Where:" field in window 1 seems to be a problem.
|
_______________________________________________
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