click execute file copy pls debug my file

Posted 18 July 2011 - 11:29 AM

derda

InsanelyMac Protégé

Members

47 posts

on linux a bash script can be executed by a simply click. on osx $pwd seems messed ie files not found in: cp filea ../blbl/blbl/ when not executed alike ./script but with a click as *.command or *.sh
someone could fix my work below? i calculated 2 min and already spent moren than an hour on such ...:-(
Thanks

----------
tell application "Finder" to set f to POSIX path of ((container of (path to me)) as alias)
tell application "Terminal"
activate
set t to (make new terminal)
tell t
tell (make new session at the end of sessions)
do shell script "echo
echo Copying files
echo
sleep 5