clipboard

Yesterday I wrote a short AppleScript application that copied the current path of the Finder window to the clipboard. A rather unassuming, yet handy application. One downside to this application is that if you want the path of a folder selected in Finder, you would have to double-click on the folder to change the Finder path to that folder location, and then you could engage the AppleSscript application to copy the path.

For example, in the figure below clicking the Script Editor icon that we created in yesterday” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D–%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A–%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A–%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg’)”s post (to the right of the terminal window with green arrow) will copy the path /Applications/ to the clipboard. However, what if you intention was to copy the path of the highlighted folder, that is, /Applications/Utilities/Java/ ?

I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D–%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A–%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A–%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg’)”ve reworked the original example to add support for dragging a folder onto the icon and also moved the code for displaying a dialog box when an error occurs into a subroutine. Take a look at updated application below:

 onclick= Click here to paste the code below into the Script Editor

-- When clicking on the icon
try
  tell application " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Finder" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"
    set currentPath to (POSIX path of (target of front window as alias))
    set the clipboard to currentPath
  end tell
on error
  my finderErrorMsg()
end try

-- When dropping a folder onto the icon
on open {droppedFolder}
  try
    tell application " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Finder" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"
      set the currentPath to (POSIX path of droppedFolder as text)
      set the clipboard to currentPath
    end tell
  on error
    my finderErrorMsg
  end try
end open

-- Error msg when unable to copy a path to the clipboard
on finderErrorMsg()
  display dialog " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Unable to copy a path to the clipboard.
                      Make sure Finder is referencing a directory/folder
                      within the file system." onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"
                      buttons {" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Ok" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"} with icon caution with title " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Error" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"
end finderErrorMsg

With the addition of the on open reference (line 12) you can now drag/drop a folder in Finder onto the application icon and its path will be copied to the clipboard. Before you can use the script, you will need to save the AppleScript code as an application and drag the script onto the toolbar (remove any previous version of the program by right clicking and selecting ” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D–%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A–%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A–%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg’)”Remove Item” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D–%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A–%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A–%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg’)”).

As a quick debugging tip, you can add a dialog box as shown below to display the path that was copied into the clipboard:

tell application " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"Finder" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"
  set currentPath to (POSIX path of (target of front window as text))
  set the clipboard to currentPath
  display dialog currentPath buttons {" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"ok" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3D--%2520When%2520clicking%2520on%2520the%2520icon%250Atry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509my%2520finderErrorMsg%2528%2529%250Aend%2520try%250A%250A--%2520When%2520dropping%2520a%2520folder%2520onto%2520the%2520icon%250Aon%2520open%2520%257BdroppedFolder%257D%250A%2509try%250A%2509%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520droppedFolder%2520as%2520text%2529%250A%2509%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509%2509end%2520tell%250A%2509on%2520error%250A%2509%2509my%2520finderErrorMsg%250A%2509end%2520try%250Aend%2520open%250A%250A--%2520Error%2520msg%2520when%2520unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard%250Aon%2520finderErrorMsg%2528%2529%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520finderErrorMsg')")"}
end tell
...

Now you can view the clipboard contents (through the dialog box) which makes the debugging process a little easier should you decide to tweak this application.

Another good example of the power of scripting on a Mac.

I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ve written a short script that I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ve found more useful that I ever anticipated. It is nothing more than an AppleScript application that copies the current path of Finder to the clipboard. Sounds rather unassuming, however, I think you” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ll be surprised how handy it is.

The AppleScript code is less than 10 lines that instruct Finder to get the path of the front most Finder window and copy the path to the clipboard.

 onclick= Click here to paste the code below into the Script Editor

try
  tell application " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"Finder" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"
    set currentPath to (POSIX path of (target of front window as alias))
    set the clipboard to currentPath
  end tell
on error
  display dialog " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"Unable to copy a path to the clipboard.
                      Make sure Finder is referencing a directory/folder
                      within the file system." onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"
                      buttons {" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"Ok" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"} with icon caution with title " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"Error" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A')")"
end try

From within Script Editor, save the code as an application and then drag/drop the application to the toolbar in Finder. The screenshot below shows the Script Editor icon in Finder (to the right of the terminal window with the green arrow), where it is now one click away.

There is a trivial amount of error handling in this short script. If you try and run this script while Finder is referencing the system (as compared to a directory/folder on the system) you” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ll get the following error message.

In the next tip of this series we” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ll drill down one level further and I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtry%250A%2509tell%2520application%2520%2522Finder%2522%250A%2509%2509set%2520currentPath%2520to%2520%2528POSIX%2520path%2520of%2520%2528target%2520of%2520front%2520window%2520as%2520alias%2529%2529%250A%2509%2509set%2520the%2520clipboard%2520to%2520currentPath%250A%2509end%2520tell%250Aon%2520error%250A%2509display%2520dialog%2520%2522Unable%2520to%2520copy%2520a%2520path%2520to%2520the%2520clipboard.%2520Make%2520sure%2520Finder%2520is%2520referencing%2520a%2520directory%252Ffolder%2520within%2520the%2520file%2520system.%2522%2520buttons%2520%257B%2522Ok%2522%257D%2520with%2520icon%2520caution%2520with%2520title%2520%2522Error%2522%250Aend%2520try%250A’)”ll show how to copy the path of a selected folder within the current Finder window, to the clipboard.

If you are ever in need of a simple (free) clipboard manager, I recommend you check out Jumpcut. This application works quietly in the background, saving each text copy into an internal buffer. When you want to paste information, click the icon on the menu bar and you’ll see a list of recently copied text, choose the one you like and you’re good to go…

Having the ability to copy/paste multiple lines of code, from multiple source files, has come in handy many times.

In the image below you can see the menu bar icon for Jumpcut, along with a list showing my four most recent entries copied into the clipboard.

One other really nice thing about Jumpcut is that it’s open source. If you are looking to learn about Cocoa development, specifically one which pokes around with some interesting system stuff, give Jumpcut a look.