• 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: Print to PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print to PDF


  • Subject: Re: Print to PDF
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 10 Jan 2012 19:00:26 +0100

Le 10 janv. 2012 à 18:20, Luther Fuller a écrit :

> 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.

I posted a version extracted from the true scripts.
In the scripts using this code, it's the main code which define the document's name.

If I run the posted code without the instruction
> set value of text field 1 of window 1 to "beurk.pdf",

there is no name in the field so we can't save.

In fact, I wished to give a code valid on every localized system.

Yvan KOENIG (VALLAURIS, France) mardi 10 janvier 2012 18:59:27

 _______________________________________________
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: Print to PDF
      • From: Luther Fuller <email@hidden>
References: 
 >Print to PDF (From: "R. Nelson Byrne" <email@hidden>)
 >Re: Print to PDF (From: email@hidden)
 >Re: Print to PDF (From: Alex Zavatone <email@hidden>)
 >Re: Print to PDF (From: Rick Gordon <email@hidden>)
 >Re: Print to PDF (From: Luther Fuller <email@hidden>)
 >Re: Print to PDF (From: theDaniel <email@hidden>)
 >Re: Print to PDF (From: Luther Fuller <email@hidden>)
 >Re: Print to PDF (From: KOENIG Yvan <email@hidden>)
 >Re: Print to PDF (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Print to PDF
  • Next by Date: Re: Print to PDF
  • Previous by thread: Re: Print to PDF
  • Next by thread: Re: Print to PDF
  • Index(es):
    • Date
    • Thread