Okay, also versuche ich eine .jar-Datei zu öffnen, aber egal, was ich versuche, es kommt immer auf einen Fehler.Ausführen eines Java-Skripts in AppleScript
Ich habe versucht:
to run
set current_path to POSIX path of (path to me) as string
set pathto to current_path & "Contents/Resources/TechnicLauncher.jar"
tell application "Finder" to open file pathto
end run
Mit dem Fehler:
error "Finder got an error: Can’t get file \"/Applications/Technic Launcher.app/Contents/Resources/TechnicLauncher.jar\"." number -1728 from file "/Applications/Technic Launcher.app/Contents/Resources/TechnicLauncher.jar"
Und:
to run
set current_path to POSIX path of (path to me) as string
set pathto to quoted form of current_path & "Contents/Resources/TechnicLauncher.jar"
do shell script pathto
end run
Mit dem Fehler:
error "sh: /Applications/Technic Launcher.app/Contents/Resources/TechnicLauncher.jar: Permission denied" number 126
Ich weiß nicht, wie ich das schaffen kann. Kann jemand helfen?