• 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: Luther Fuller <email@hidden>
  • Date: Tue, 10 Jan 2012 13:45:48 -0600

I tried this script ...

set mailPrefsPath to ((path to preferences from user domain) as text) & "com.apple.mail.plist"
set saveLocAlias to (path to temporary items from user domain)

(POSIX path of saveLocAlias)
tell application "System Events"
set value of property list item "NSNavLastRootDirectory" of property list file mailPrefsPath to the result
end tell

-- Mail will not see this change until the next launch


It seems to work, but I'm having problems getting Mail to reliably see the change.
Sometimes "next launch" works and sometimes I have to try again.

 _______________________________________________
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: 
 >Re: Print to PDF (From: email@hidden)

  • Prev by Date: Re: Print to PDF
  • Next by Date: Apple script issue with iOS5 device.
  • Previous by thread: Re: Print to PDF
  • Next by thread: Re: Print to PDF
  • Index(es):
    • Date
    • Thread