jar - Running a Java Script in AppleScript -


okay, i'm trying open .jar file no matter try, comes error.

i have tried:

to run      set current_path posix path of (path me) string      set pathto current_path & "contents/resources/techniclauncher.jar"      tell application "finder" open file pathto  end run 

with error:

error "finder got error: can’t file \"/applications/technic launcher.app/contents/resources/techniclauncher.jar\"." number -1728 file "/applications/technic launcher.app/contents/resources/techniclauncher.jar"

and this:

to run      set current_path posix path of (path me) string      set pathto quoted form of current_path & "contents/resources/techniclauncher.jar"      shell script pathto  end run 

with error:

error "sh: /applications/technic launcher.app/contents/resources/techniclauncher.jar: permission denied" number 126

i don't how can make work. can help?

you can try this. have not tried on system because have no jar files open. think work though.

set techniclauncher (path me string) & "contents:resources:techniclauncher.jar" tell application "jar launcher" open techniclauncher 

this should work you.

set techniclauncher path resource "techniclauncher.jar" tell application "jar launcher" open techniclauncher 

but file techniclauncher.jar... must located inside resources folder of script bundle or script application have created.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -