I am also using Alan's code to allow selection of one of the files via a finder dialog box leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e 'return POSIX path of (choose file with prompt "Pick an file:")' -e 'end tell').
This does not allow access to packages such as a .wdgt folder. Is there a way to allow the finder dialog box to access a folder such as this. This would also apply to a .app folder.
You can add the ability to enter packages to the applescript, by including "with showing package contents". You want:
leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e 'return POSIX path of (choose file with prompt "Pick an file:" with showing package contents)' -e 'end tell')
all on one line of course.
-Jacob