is there any way to create list of files, folders, unix tools and Mac apps which my AppleScript or Xcode ASOC depends on?
I’m especially interested to get unix tools and apps. I’m reorganizing my hard drives so i need to find out what scripts brake if i dont change paths first.
I listed a method to get applications in post #3here. You can check the other switches of the command and see if you can get other information that you want.
Another way might be something like the following. Suppose you wanted to check the path to the TextEdit application. If the path you expect doesn’t exist then you ask the user to find it for you…
set posixTextEditPath to "/Applications/TextEdit.app"
set textEditPath to POSIX file posixTextEditPath
try
alias textEditPath
on error
set textEditPath to choose application with prompt "Please select the TextEdit application"
end try