Skip to main content
CarlosCanto
Brainiac
May 10, 2012
Question

Changes in CS6

  • May 10, 2012
  • 2 replies
  • 5250 views

OMG! the CS6 DOM additions are _________. (fill in the blanks).

2 Enumerations

- Compatibility.ILLUSTRATOR16

- ExportType.TIFF

2 Methods

- PlacedItem.relink()

- Application.sendScriptMessage()

1 Data Class

- ExportOptionsTIFF

(According to the CS6 SCRIPTING REFERENCE)

This topic has been closed for replies.

2 replies

Inspiring
May 11, 2012

That's not all!


From the OMV I have found 3 Application methods. I don't know why they're not listed in the REFERENCE. Here it is:

Application.doScript (action: string , from: string , dialogs: Boolean )
Adobe Illustrator CS6 Type Library
Play an action from the Actions Palette.
action
: Data Type: string
The name of the action to play (note that the case of letters in the Action name is important and must match the case of the name in the Actions palette)
from: Data Type: string
The name of the action set containing the action being played (note that the case of letters in the Action Set name is important and must match the case of the name in the Actions palette)
dialogs
(optional): Data Type: Boolean , Default Value: true
Are dialog boxes associated with the action to be presented?

Application.executeMenuCommand (menuCommandString: string )
Adobe Illustrator CS6 Type Library
Executes a menu command using the menu shortcut string.
menuCommandString
: Data Type: string
Menu command shortcut.

Application.dumpPGFFile (file: File , documentColorSpace: DocumentColorSpace , pGFFile: File ): Boolean
Adobe Illustrator CS6 Type Library
Dump the PGF portion of ai file to txt file.
file
: Data Type: File
The AI file to be opened.
documentColorSpace
(optional): Data Type: DocumentColorSpace
Choose color space only for documents saved with multiple color models (pre-Illustrator 9)
pGFFile
: Data Type: File
Folder to save the output PGF file.


And here are some example:

var f = File.openDialog ('', '*.ai', 0);

app.dumpPGFFile(f, undefined, f.parent);


app.executeMenuCommand('Live Adobe Drop Shadow');


Also see this gist: https://gist.github.com/2568405



Inspiring
May 11, 2012

Moluapple, thanks for those… They look like some of the bigger wishes too… Evoking menus and actions opens access right up…

Inspiring
May 11, 2012

The app.doScript has always been there for AppleScript and VisualBasic just not for JS. Looking over the JS reference it's still not listed.


Are you looking in the docs or the OMV Larry? Actions and menu items would be a hugh break through IMO… A pitty no events… Hum do I get the trial to have rummage…?

Inspiring
May 10, 2012

Carlos, can you save that as PDF. It would save me popping down the devcentre…

Compatability should be not too dificult too…

CarlosCanto
Brainiac
May 10, 2012
Larry G. Schneider
Inspiring
May 10, 2012

Finally the ability to Export directly to a Tiff file. Do the options include Transparency?

Just downloaded the reference file and no Transparency for Tiff. Also what is IZW compression? Has it taken the place of LZW?