Tools/Utilities

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.

I can’t count how many times I’ve found myself in Finder and wanted to jump to a terminal at the current path location. The Open Terminal application is one of those little gems that will make you wonder how you ever got along without it. If you spend any time at all moving between Finder and a terminal, read on…

Installing the application is as simple as extracting the zip file and dragging the OpenTerminal.app file into a location where you store other scripts, tools, utilities, etc. I have a folder within my home directory where I dump all this kind of stuff, so down the road when I bump into this folder I’ll have a clue where the applications came from.

With the app installed, open Finder and drag the application to the toolbar. You’ll see the icon appear as shown here:

The first time you run this application you will be presented will an impressive list of options. The defaults work fine, however, take a few minutes to read through each option. Depending on how you work, chances are you can configure this app to keep pace with you.

Clicking on the Shell config option (on the top left) will present even more configurations choices:

If you are not using the default shell on Mac OS X (bash) I recommend choosing the ‘pushd’ option as this is another really handy tool to have when bouncing around the file system (pushd/popd are built-in commands on bash).

From here forward, whenever you are in Finder and want to jump to a terminal, simply click on the Open Terminal icon, and you’ll be whisked off to a terminal window. Slick.

The latest version will only work on Leopard, however, you can download an older version for Tiger as well. The only downside to this application is that the source code is not included. I’ll keep my eyes peeled for a similar version that includes the source. If you find one first, please post a comment.

OpenTerminal also includes a contextual menu plugin for the Finder that adds a "Open Terminal" command, that is as close as right click…

One aspect of my day job is developer relations for Mojax, an application framework for building mobile applications. Screencasts have been helpful to demonstrate various aspects of the platform and tools.

I currently use iShowU for creating screencasts. This is a great little tool and has pretty much covered all our needs. However, creating screencasts is time consuming, to say the least. In an effort to find something that we can use to crank out step-by-step tutorials in short order, Rodney Aiglstorfer, CTO of Mojax (mFoundry), suggested I give ScreenSteps a look.

Read more »

I recently had to rename somewhere in the neighborhood of 100+ files as I was moving code from one platform to another. Obviously, I was looking for a quick solution, and what follows is the shell (Bash) script that I used to do the job:

Read more »

In a previous post I wrote about the Fink package manager. MacPorts is another popular tool for installing and managing open source software on Mac OS X. There are a number of overlaps with the two packages, however, they are not one in the same.

Read more »

There are times when the default unix tools installed on Mac OS X fall short. For instance, wget which is used to download files over the web using http, https, and ftp, is not available “out-of-the-box.”

Fink is one of several package managers available for Mac OS X that make it easy to download and install any number of software applications/tools.
Read more »

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.

For those who are new to working with Unix, I want to take a moment to introduce aliases. The simplest means to think of an alias is as a text shortcut, used inside a Terminal window, to represent one or more commands. On second thought, maybe that isn’t the simplest means to describe an alias. Let me try again using an example…

Read more »