• 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: Ylan Segal <email@hidden>
  • Date: Tue, 22 May 2007 16:05:43 -0700


On May 22, 2007, at 3:02 PM, Michelle Steiner wrote:

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

[snip]
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
[snip]

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.

Of course, I have the directory and file in place :)

I did try changing the slash to colon, as you suggested. But still, nothing seems to happen. Any other suggestions?

Code:
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


Event log:
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

Thanks for the help,

--
Ylan Segal
email@hidden
◂

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

  • Prev by Date: Re: version numbers
  • Next by Date: (OFF) ANN: Missing Link 2.3b2
  • Previous by thread: Re: Rookie - Import Mail mailbox
  • Next by thread: Re: Rookie - Import Mail mailbox
  • Index(es):
    • Date
    • Thread