There's an annoying launcher for Harry Potter and the Chamber of Secrets, so I wanted to make a script that includes the whole game, and when clicked, opens the app. It never works, no matter what I do! Help me please. I attach here the zipped app.
Here are my attempts:
1.
set applocation to POSIX path of ":Contents:Resources:Harry Potter II:Harry Potter CoS"
try
set command to "open" & quoted form of applocation
do shell script command
end try
2.
set applocation to POSIX path of ":Contents:Resources:Harry Potter II:Harry Potter CoS"
try
set command to "open as alias" & quoted form of applocation
do shell script command
end try
3.
set applocation to POSIX path of "Contents:Resources:Harry Potter II:Harry Potter CoS"
do shell script "open " & applocation
4.
open ":Contents:Resources:Harry Potter II:Harry Potter CoS"
Here are my attempts:
1.
set applocation to POSIX path of ":Contents:Resources:Harry Potter II:Harry Potter CoS"
try
set command to "open" & quoted form of applocation
do shell script command
end try
2.
set applocation to POSIX path of ":Contents:Resources:Harry Potter II:Harry Potter CoS"
try
set command to "open as alias" & quoted form of applocation
do shell script command
end try
3.
set applocation to POSIX path of "Contents:Resources:Harry Potter II:Harry Potter CoS"
do shell script "open " & applocation
4.
open ":Contents:Resources:Harry Potter II:Harry Potter CoS"
Attachments
Last edited: