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

Re: Getting directory path


  • Subject: Re: Getting directory path
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 18 Jul 2005 12:21:59 -0700


On Jul 18, 2005, at 11:59 AM, Guillaume Iacino wrote:

Let's say I have the following path "HD:Folder1:Folder2:Folder3:File.ext"

How can you get the directory in which the file is?

How can you easily get the path of one directory up "HD:Folder1:Folder2:"

What about 2 directories up?

set foo to alias "Dora:folder1:folder2:folder3:folder4:" tell application "Finder" folder of foo end tell --> alias "Dora:folder1:folder2:folder3:"

You can make this recursive for as many levels as you want/need to traverse up the path.

-- Michelle

--
"The right to be heard does not automatically include the right to be taken seriously." -- Hubert H. Humphrey


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting directory path (From: Guillaume Iacino <email@hidden>)

  • Prev by Date: Getting directory path
  • Next by Date: Lots of Excel text
  • Previous by thread: Getting directory path
  • Next by thread: Lots of Excel text
  • Index(es):
    • Date
    • Thread