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: JongAm Park <email@hidden>
- Date: Wed, 20 Sep 2006 20:15:46 -0700
Hello.
Thank you for helping me.
Strangely it started work correctly after exiting the Script Editor and
the Xcode and waiting 1 day.
Probably the Script Editor or the Xcode corrupted some of its memory space.
(Even though it is true, it means it is a kind of AppleScript problem or
the Script Editor problem at least. It should clean up its stack and heap. )
Now, things like this works.
set directory_path to (container of folder my_file_path)
However, it returns :
folder "jongampark" of folder "Users" of startup disk of application
"Finder"
Its class type is "folder".
I would like to convert it to POSIX path.
Can you tell me how to do it?
Thank you very much.
david wrote:
> we are using the same AS version:
> AppleScript version 1.10.7
> script editor version 2.1.1
> standard additions 1.10.7
>
> i am running Mac OS X 10.4.6 -- are we using the same OS X version
> i copied the script you created, so we are using the same syntax
>
> i can't think of any other reason there is a difference
>
> let me know what you find!
>
> David in Maine
>
> On Sep 20, 2006, at 9:16 AM, JongAm Park wrote:
>
>> 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?
>
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=
JongAm Park Home : http://my.dreamwiz.com/jongam
Blog : http://jongampark.blogspot.com
Tel)213-251-9592 MSN : email@hidden
H.P)213-820-8943 AIM/iChat : JongAm
_______________________________________________
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