Ok czyli teraz mam tak
Kod php:
set myPath to (path to me) as text
set myPath to quoted form of POSIX path of myPath
set myFolderPath to POSIX file (do shell script "dirname " & POSIX path of quoted form of myPath) & ":" as string
set myFolderPathPosix to POSIX path of myFolderPath
do shell script myFolderPathPosix & "Dropbox Linker.app/Contents/Resources/Scripts/Dropbox.sh"
Ale zaczął wywalać taki błąd
Kod php:
sh: /Dropbox: No such file or directory
Log:
Kod php:
tell current application
path to current application
--> alias "Macintosh HD:Users:XXX:Desktop:Dropbox Linker.app:"
do shell script "dirname /''\\'':Users:XXX:Desktop:Dropbox Linker.app:'\\'''"
--> "/"
do shell script "/Dropbox Linker.app/Contents/Resources/Scripts/Dropbox.sh"
--> error "sh: /Dropbox: No such file or directory" number 127
Wynik:
error "sh: /Dropbox: No such file or directory" number 127