Applescript File Permissions with Preview
When I have Applescript tell Preview to open a newly created image file, like this:
tell application "Preview" to open scan_folder & "6 L.tif"
Preview pops up the message: "The file "6 L.tif" couldn't be opened because you don't have permission to view it."
However if I open it manually from Preview, or have Finder open it, it works OK.
Stranger yet, after the file has been opened one time by Preview, then I don't get the error when Applescript tells Preview to open it.
The file permissions are set to "Read & Write" when the file is created, and are unchanged after it is opened manually.
How can I have Applescript tell Preview to open newly minted image files?
iMac G5, Mac OS X (10.4.2)