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

Extract Folder Name from Full Path


  • Subject: Extract Folder Name from Full Path
  • From: Marconi <email@hidden>
  • Date: Sat, 16 Aug 2003 09:09:35 -0700

How can I extract just the folder name from a full path?

I'm using:

set FullPath to (choose folder) as string

which sets FullPath to something like:
"Mac HD:Users:Marconi:Mail Server Logs: 2003-07:"

and I want 'set FolderName...' to set Foldername to just the last folder in the FullPath: "2003-07".

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


--

"A man who believes in nothing will fall for anything." -- Malcolm X
_______________________________________________
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.

  • Follow-Ups:
    • Re: Extract Folder Name from Full Path
      • From: Deivy Petrescu <email@hidden>
    • Re: Extract Folder Name from Full Path
      • From: Andrew Oliver <email@hidden>
    • Re: Extract Folder Name from Full Path
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Bug in QXPScriptingAdditions.osax?
  • Next by Date: Re: Extract Folder Name from Full Path
  • Previous by thread: Re: Importing to Excel and Finding a Path
  • Next by thread: Re: Extract Folder Name from Full Path
  • Index(es):
    • Date
    • Thread