• 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: [Q] How to get a containing folder of a given file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Adam Bell <email@hidden>
  • Date: Wed, 20 Sep 2006 10:46:48 -0300

Title: Re: [Q] How to get a containing folder of a given file?
Either 'container' or 'folder' works:

set P to path to desktop folder
tell application "Finder" to set F to folder of P as alias
tell application "Finder" to set Fc to container of P as alias

At 2:15 AM -0400 9/20/06, david wrote:
by adding as alias also worked with your script:

tell application "Finder"
       set my_file_path to path to desktop folder
      -- get container of my_file_path as text
        set directory_path to (container of my_file_path) as alias
end tell


(the script michelle replied with works perfectly also)

david in maine




On Sep 20, 2006, at 1:56 AM, JongAm Park wrote:
Hello, David.

Actually finding path works for me.
However finding "containing folder" doesn't work for me.
It is what I need.

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

This email sent to email@hidden

 _______________________________________________
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: 
 >[Q] How to get a containing folder of a given file? (From: JongAm Park <email@hidden>)
 >Re: [Q] How to get a containing folder of a given file? (From: david <email@hidden>)
 >Re: [Q] How to get a containing folder of a given file? (From: david <email@hidden>)
 >Re: [Q] How to get a containing folder of a given file? (From: JongAm Park <email@hidden>)
 >Re: [Q] How to get a containing folder of a given file? (From: david <email@hidden>)

  • Prev by Date: Re: [Q] How to get a containing folder of a given file?
  • Next by Date: Re: [Q] How to get a containing folder of a given file?
  • Previous by thread: Re: [Q] How to get a containing folder of a given file?
  • Next by thread: Re: [Q] How to get a containing folder of a given file?
  • Index(es):
    • Date
    • Thread