MACSCRPT Archives

May 2003

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:
Wed, 7 May 2003 15:59:05 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Photoshop 7.0 with scripting plugin on a G4 running 9.2.2. Applescript 1.8.3

Open a file. Simplest thing in the world, right?

set myFile to "Disk:folder:filename"
tell application "Adobe Photoshop 7.0"
        open alias myFile
end tell

Works until I get a dialog "the file has an embedded color profile
that does not match the working space, which one do you want?" which
of course screws up any automated batch processing.  the Open command
has an option to ignore dialogs, but that doesn't cause it to ignore
this one.

The document object has a property, "color profile name"  so I figure
I'll set that to "none."   But these haven't worked:

open alias myFile with options color profile name none
open alias myFile with options color profile name "none"
open alias myFile with options color profile name: none
open alias myFile with options color profile name "none"
open alias myFile with options "color profile name: none"
open alias myFile with options {color profile name: none} --closest
to one of their examples

Anybody know the correct syntax, or another way to bypass the dialog?
Wouldn't it have been nice of them to include an example of opening a
file in their sample scripts?  Naw, too simple to bother with.
--

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2