2

My AppleScript app on my computer gives a error.

Here is the code:

set file to display dialog "Open Script?" default answer "tests/helloworld.in"
do shell script "cat " & file & " | python parenthetic.py"
do shell script "echo"
do shell script "echo App +" & file  & "+ is done load!"

And the error:

Can't set file to display dialog "Open Script?" default answer "tests/helloworld.in". Access not allowed.

0

You can't set file because it's reserved by AppleScript.

Rename file to something else, such as myfile.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .