Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Getting permission to access a file with Applescript.

Here's enough of my script to indicate the problem:



tell application "TextEdit"

open alias "Main Drive:Users:williamalford:another file.txt"

end tell



I get a permissions error from TextEdit:


User uploaded file

So, although I clearly have read/write access from the GUI, accessing this or any other file from my script through TextEdit yields this error message.


Can anybody help me resolve this issue?

Applescript and Keynote-OTHER

Posted on Nov 24, 2012 5:06 AM

Reply
Question marked as Best reply

Posted on Nov 24, 2012 6:35 AM

Try changing



open alias "Main Drive:Users:williamalford:another file.txt"



to

open file "Main Drive:Users:williamalford:another file.txt"



3 replies

Getting permission to access a file with Applescript.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.