• 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: Rookie - Import Mail mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rookie - Import Mail mailbox


  • Subject: Re: Rookie - Import Mail mailbox
  • From: Andreas Amann <email@hidden>
  • Date: Tue, 22 May 2007 17:18:49 -0700

The "import Mail mailbox" command requires a POSIX-path to the mailbox to be imported (regardless of what the dictionary says...).

Try the following (assuming that you have the folder as indicated by your last message):

tell application "Mail" to import Mail mailbox at "~/Temp/ylan.mbox"

Alternatively you could try (keeping your tell Finder block):

tell application "Finder" to set temp to (path to home folder from user domain as text) & "Temp:ylan.mbox"
tell application "Mail" to import Mail mailbox at POSIX path of temp


Andreas
_______________________________________________
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: Rookie - Import Mail mailbox
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Rookie - Import Mail mailbox
  • Next by Date: Re: Rookie - Import Mail mailbox
  • Previous by thread: Re: Rookie - Import Mail mailbox
  • Next by thread: Re: Rookie - Import Mail mailbox
  • Index(es):
    • Date
    • Thread