if i create a soft or a hard link of applications, and try to select that app-link via : choose file dialog, the chooser picks not the application, but goes deeper into the package.
Unfortunately, not even -without showing package contents- helps. In my script (1470 paragraphs long) the choose file handler is nested 4 levels deep and invoked by using the -standard commands-
the test-script below works flawlessly, but i get other results in my longer script. Why?
set orig_file to "/Applications/TextEdit.app"
set linked_copy to "~/Desktop/TextEdit.app"
#create a link
set cmd to "ln -s " & orig_file & " " & linked_copy
try
do shell script cmd
end try
set ch to (choose file default location (path to desktop folder) without showing package contents)