Re: Getting directory path
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