User Interaction Not Allowed
User Interaction Not Allowed
- Subject: User Interaction Not Allowed
- From: Steve Suranie <email@hidden>
- Date: Thu, 24 Feb 2005 10:30:42 -0500
Can someone give me a hand with this one.
I have a text file which list image files that have to be converted from
CMYK to RGB - entries in the text file look like this:
Cumulus:Merion Image Archive:_thumbnails:AA110104_IL_ALD.jpg CMYK
All I am trying to do is open the file with Image Events and convert it to
RGB. I can open the file and close the file but when I try to convert it I
get a user interaction not allowed error.
Any clues as to what I am doing wrong. (It's not a permission issue as I
have read/write access to the server and I am the owner of the _thumbnails
folder.)
TIA
Code follows
===========================
set oad to AppleScript's text item delimiters
set thePath to "Cumulus:Merion Image Archive:_thumbnails:"
--getting the file
set fileToRead to choose file with prompt "Select a File"
set fileToRead to fileToRead as string
set fileContents to read file fileToRead
--looping through the file contents
set AppleScript's text item delimiters to "CMYK"
repeat with i from 1 to count of every text item of fileContents
set thePath to text item i of fileContents
set thePath to thePath as string
tell application "Image Events"
try
launch
set theImage to open alias thePath
set color space of theImage to "RGB"
close thePath
on error errMsg
display dialog errMsg
end try
end tell
end repeat
set AppleScript's text item delimiters to oad
===========================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden