Hai,
I am trying to create a application file in mac, using the below code.
Above mentioned application file is created, But its type is, created as
Application (Classic).
So that file is, not executable.
If we manually create, it is working properly.
Can anyone help to resolve this?
Thanks in advance.
I am trying to create a application file in mac, using the below code.
Code:
FileOutputStream fout;
try
{
fout = new FileOutputStream("/Users/laserwords/Desktop/fileopening.app");
new PrintStream(fout).println ("tell application \"Finder\" \n set myFil to \"Macintosh HD:sample1.pdf\" as string open file myFil \nend tell");
fout.close();
}
catch (IOException e)
{
System.err.println ("Unable to write to file");
System.exit(-1);
}
Above mentioned application file is created, But its type is, created as
Application (Classic).
So that file is, not executable.
If we manually create, it is working properly.
Can anyone help to resolve this?
Thanks in advance.