• 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: Luther Fuller <email@hidden>
  • Date: Thu, 30 Jun 2011 11:16:45 -0500

On Jun 30, 2011, at 8:45 AM, Michelle Steiner wrote:
You could try this:

Or you could try this:

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 have found it useful to simply remove all "colon prefixes" of length less than 4 until there aren't any, then remove any other colons or slashes.

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?

The difference between an emlx and an eml file is tiny. The emlx file contains a small embedded xml text at the end with meta-data about the message.

My copy of messages in this thread look like this ...


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

  • Prev by Date: Re: file path problem
  • Next by Date: Re: Help with retrieving messages from GMail account in Mail.app
  • Previous by thread: Re: file path problem
  • Next by thread: Re: file path problem
  • Index(es):
    • Date
    • Thread