• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 22 May 2007 15:02:10 -0700

On May 22, 2007, at 1:06 PM, Ylan Segal wrote:

tell application "Finder" to set temp to path to user domain as text & "Temp/ylan.mbox"
tell application "Mail" to import Mail mailbox at temp


Michelle,

Thanks for taking the time to reply.

I tried your code, but got an error. So I did my best to correct it (reading from the documentation):

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 temp


However, this does not appear to do anything, although the path seems to be correct. The Event log shows:

tell application "Finder"
	path to home folder from user domain as text
		"ylan:"
end tell
tell application "Mail"
	import Mail mailbox at "ylan:Temp/ylan.mbox"
end tell

Change the slash to a colon; I missed that when copying and pasting from your original message. This also assumes that you have created a folder named "Temp" in your user directory, which is what your original code implies.


-- Michelle

--
"When fascism comes to America, it will be wrapped in the flag and carrying a cross."--Sinclair Lewis



_______________________________________________ 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: Ylan Segal <email@hidden>
References: 
 >Rookie - Import Mail mailbox (From: Ylan Segal <email@hidden>)
 >Re: Rookie - Import Mail mailbox (From: Michelle Steiner <email@hidden>)
 >Re: Rookie - Import Mail mailbox (From: Ylan Segal <email@hidden>)

  • Prev by Date: Re: version numbers
  • Next by Date: Re: version numbers
  • Previous by thread: Re: Rookie - Import Mail mailbox
  • Next by thread: Re: Rookie - Import Mail mailbox
  • Index(es):
    • Date
    • Thread