Re: [Q] How to get a containing folder of a given file?
Re: [Q] How to get a containing folder of a given file?
- Subject: Re: [Q] How to get a containing folder of a given file?
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 20 Sep 2006 16:31:30 +0200
Le 20 sept. 2006 à 15:16, JongAm Park a écrit :
Hello.
It is interesting. Actually one of my friend also tested the code,
and it worked on his machine.
However it doesn't work for me.
AppleScript version is 1.10.7
Is it different?
Thank you.
Hello
I'm also using AS 1.10.7
I get perfect results with two versions:
version 1 :
set my_file_path to path to desktop
tell application "Finder"
set directory_pathA to (container of my_file_path) as alias
set directory_pathT to (container of my_file_path) as text
end tell
It uses Standard Additions to grab the path to the desktop.
version 2 :
tell application "Finder"
set my_file_path to path to desktop folder
set directory_pathA to (container of my_file_path) as alias
set directory_pathT to (container of my_file_path) as text
end tell
It uses the Finder to grab the path to the desktop.
Take care of the difference in the syntax !!!
Yvan KOENIG _______________________________________________
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