Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
- Subject: Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
- From: "stephan peterson" <email@hidden>
- Date: Thu, 10 May 2007 13:04:35 -0500 (CDT)
- Importance: Normal
The trick is to use "without dialogs". Unfortunately, even using that
still doesn't force the spot colors to CMYK. :-( Actually, it didn't even
change the color mode of an RGB document to CMYK as I'd hoped it would.
Stephan
> I would guess that your "fileToOpen" variable is a string and not a
> file spec or alias.
>
> Try changing it to
>
> tell application "Adobe Illustrator CS2"
> open alias fileToOpen forcing CMYK
> end tell
>
>
>
> On 10 May 2007, at 16:56, stephan peterson wrote:
>
>> I looked at that as an option. In CS2 this doesn't seem to work.
>> Actually,
>> telling AI to open a file doesn't work. You would think it would
>> just open
>> a specific file, but in my testing I just get an AI open file dialog
>> window. :-(
>>
>> Here's my code:
>>
>>
>> set fileToOpen to (choose file)
>>
>> tell application "Adobe Illustrator CS2"
>> open fileToOpen forcing CMYK
>> end tell
>>
>> I get the choose file window and then AI pops up its open dialog
>> window.
>> I've tried just giving a path to AI and it still does it.
>>
>> Because of this I've always just told the Finder to open an AI file
>> praying that it used the correct application.
>>
>> Stephan
>>
>>> Have you tried using the "forcing" parameter to the open command? you
>>> should
>>> be able to say "open theFile forcing CMYK".
>>>
>>> --
>>> Shane Stanley <email@hidden>
>>> AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> AppleScript-Users mailing list (applescript-
>>> email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>> 40goofybastard.com
>>> Archives: http://lists.apple.com/archives/applescript-users
>>>
>>> This email sent to email@hidden
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (applescript-
>> email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> email@hidden
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
>
>
>
> Simon Topliss
> Senior Systems Developer
>
> Trident UK
> Connaught House
> Connaught Road
> Kingswood Business Park
> Hull HU7 3AP
> Switchboard: +44 1482 828100
> Fax: +44 1482 710600
> DDI: +44 1482 710359
> Mobile: +44 7788 587394
>
> Trident UK is an operating division of Sonoco Ltd.
>
> Sonoco Ltd
> Reg. No#: 82196
> Reg. Address: Station Road, Milnrow, Rochdale, Lancashire, OL16 4HQ
>
>
> This email message and all documents which accompany it are intended
> only for the use of the individual or entity to which addressed, and
> may contain privileged or confidential information. Any unauthorised
> disclosure or distribution of this email message is prohibited. If
> you have received this email message in error, please notify the
> sender and delete this from all computers.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden