• 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: file path problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file path problem


  • Subject: Re: file path problem
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Fri, 01 Jul 2011 07:22:08 +0900

Thank you Luther for the feedback.

On Jul 1, 2011, at 1:16 AM, Luther Fuller wrote:

> property job_name : "Re: file path problem/test"
> set AppleScript's text item delimiters to {":", "/"}
> set job_items to text items of job_name
> set AppleScript's text item delimiters to {"-"} -- or whatever separator you want
> set new_name to job_items as text --> "Re- file path problem-test"

I see, thank you.

> When saving a copy of a message to the Finder, it is useful to know that message files are stored with the name "nnnnnn.emlx" where nnnnnn is the id of the message. (An IMAP INBOX is an exception to this.)
> This will allow you to quickly copy and rename an emlx file instead of having to write to a new file.
>
> BTW, you can write a file and give it a .eml extension, but does the content of the new file have the proper format?

According to what I've seen so far, yes. It looks like:

	tell application "Mail"
		set job to item 1 of (get selection)

is enough to get the contents of the mail file in raw form.

I've been using this script to sort my jobs for a while but only job order messages that came as replies to a mail were a problem. That's what I am at last trying to fix today.

The idea is that once the mail is stored in a job project folder, I can find it right away and double-click on it any time I need the specifics of the job.


Jean-Christophe Helary
----------------------------------------
fun: http://mac4translators.blogspot.com
work: http://www.doublet.jp (ja/en > fr)
tweets: http://twitter.com/brandelune

 _______________________________________________
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: 
 >file path problem (From: Jean-Christophe Helary <email@hidden>)
 >Re: file path problem (From: Michelle Steiner <email@hidden>)
 >Re: file path problem (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: PostBox and AppleScript
  • Next by Date: Re: file path problem
  • Previous by thread: Re: file path problem
  • Next by thread: Re: file path problem
  • Index(es):
    • Date
    • Thread