-
1. Re: [AS] Script not working - need help
Harbs. Nov 23, 2010 3:37 AM (in response to zevendesign)Use make swatch instead of make color...
Harbs
-
2. Re: [AS] Script not working - need help
zevendesign Nov 23, 2010 3:43 AM (in response to Harbs.)Tried that earlier and got this error:
error "Adobe InDesign CS5 got an error: Can’t make class swatch." number -2710 from swatch to class
-
3. Re: [AS] Script not working - need help
Harbs. Nov 23, 2010 3:55 AM (in response to zevendesign)Sorry. I wrote that without thinking. That's Illy, not Indy...
Harbs
-
4. Re: [AS] Script not working - need help
Muppet Mark-QAl63s Nov 23, 2010 12:30 PM (in response to zevendesign)You have made a color and passed this a variable for the name property "English3" so when wanting to use your color address the swatch by name…
to swatch "English3"
You use quite a few thing that are not actually required too. This worked for me…
tell application "Adobe InDesign CS2"
activate
-- Does this always return a list?
set Some_Junk to place asset some asset of library "Main_Library.indl" on the active document
tell the active document
-- I know this does not exist in my doc
set Some_Colour to make new color with properties ¬
{name:"Foo", color value:{0, 100, 100, 0}, model:process}
-- I know my junk is all text frame groups
set fill color of first text frame of item 1 of Some_Junk to swatch "Foo"
end tell
end tell
-
5. Re: [AS] Script not working - need help
sstanleyau Nov 23, 2010 2:02 PM (in response to zevendesign)You need to make the color at the document, not the application. And "color:CMYK" should probably be "space:CMYK".
-
6. Re: [AS] Script not working - need help
Harbs. Nov 23, 2010 2:11 PM (in response to sstanleyau)That goes to show how comfotable I am with reading AppleScript...
Harbs
-
7. Re: [AS] Script not working - need help
zevendesign Nov 24, 2010 1:29 AM (in response to sstanleyau)



