• 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: Extract Folder Name from Full Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract Folder Name from Full Path


  • Subject: Re: Extract Folder Name from Full Path
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 16 Aug 2003 09:20:30 -0700

On Saturday, August 16, 2003, at 09:09 AM, Marconi wrote:

How do I extract just "2003-07" from "Mac HD:Users:Marconi:Mail Server Logs: 2003-07:" ?

set fullpath to "Mac HD:Users:Marconi:Mail Server Logs: 2003-07:"
set {tid, text item delimiters} to {text item delimiters, ":"}
set containing_folder to text item -2 of the fullpath
set text item delimiters to tid
containing_folder

--> " 2003-07"

--
Are you better off today than you were on Jan 20th, 2001?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Extract Folder Name from Full Path (From: Marconi <email@hidden>)

  • Prev by Date: Extract Folder Name from Full Path
  • Next by Date: Re: Extract Folder Name from Full Path
  • Previous by thread: Extract Folder Name from Full Path
  • Next by thread: Re: Extract Folder Name from Full Path
  • Index(es):
    • Date
    • Thread