2 Replies Latest reply on Dec 21, 2009 4:50 AM by tobias.wantzen

    container of path

    Mahesh_JW Level 1

      Hi all

       

      what is the problem i cant get the container of path..

       

      please give the exact coding..

       

          set scptPath to active script
          set parentPath to container of scptPath
          display dialog scptPath as string
          display dialog parentPath

       

      Thanks in advance....

        • 1. Re: container of path
          Mahesh_JW Level 1

          set scptPath to active script

          display dialog scptPath as string

           

           

          its give the output of

          /Applications/Adobe InDesign CS2/Presets/Scripts/OH-LA_Reprint_PageDelete/Common/LinksAreMoveToArtFolder.scpt

           

          Actually my requirement is

          /Applications/Adobe InDesign CS2/Presets/Scripts/OH-LA_Reprint_PageDelete/Common

           

          what to do...

          • 2. Re: container of path
            tobias.wantzen Level 1

            As far as I know, you must use the Finder for this task:

             

            set myself to (path to me)

            tell application "Finder"

                container of (myself)

            end tell

            Cheers
            Tobias