• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
User Interaction Not Allowed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: User Interaction Not Allowed
      • From: Rob Stott <email@hidden>
    • Re: User Interaction Not Allowed
      • From: peter boardman <email@hidden>
References: 
 >Re: "Couldn't save document" (From: Dave Balderstone <email@hidden>)

  • Prev by Date: RE: Get User Type
  • Next by Date: Re: Ignore a script object or applet or what...?
  • Previous by thread: Re: "Couldn't save document"
  • Next by thread: Re: User Interaction Not Allowed
  • Index(es):
    • Date
    • Thread