MACSCRPT Archives

March 2014

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 13 Mar 2014 13:55:28 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
I have a script (simplified):

set foo to choose file
tell app “Image Events”
	launch
	open foo
	(do some stuff with it)
	save to desktop as “temp.jpg”
end tell

tell app “Preview”
	open “/user/desktop/temp.jpg”
end tell
—> Error: "The file couldn’t be opened because you do not have permission to view it.”

Hey, I saved it to MY desktop with MY script.

Permissions say I own it and everybody read only.  And if I open Preview and select it, it opens. 

Any ideas?



Bill Steele
[log in to unmask]

ATOM RSS1 RSS2