MACSCRPT Archives

March 2014

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Content-Type:
text/plain; charset="Windows-1252"
Date:
Thu, 13 Mar 2014 13:55:28 +0000
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Message-ID:
Subject:
From:
Bill Steele <[log in to unmask]>
MIME-Version:
1.0
In-Reply-To:
<a05210616cf3400727b17@[10.0.0.3]>
Content-Transfer-Encoding:
quoted-printable
Sender:
Macintosh Scripting Systems <[log in to unmask]>
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