Illustrator通过applescript放置物品是否生成图层组?

Illustrator通过applescript放置物品是否生成图层组?,applescript,Applescript,Illustrator通过applescript simple shape将物品放置在新图层上 导致放置的对象在图层内多次分组 我在字典或论坛中找不到任何答案,所以我想知道你们当中是否有人曾经遇到过这一点,并找到了一种解决方案,将导入的路径保持在新Illustrator层的顶层 非常感谢 Applescript: tell myDoc set layer_cmyk to current layer set name of current laye

Illustrator通过applescript simple shape将物品放置在新图层上 导致放置的对象在图层内多次分组

我在字典或论坛中找不到任何答案,所以我想知道你们当中是否有人曾经遇到过这一点,并找到了一种解决方案,将导入的路径保持在新Illustrator层的顶层

非常感谢

Applescript:

tell myDoc
            set layer_cmyk to current layer
            set name of current layer to "cmyk"
            set myLayer to make new layer with properties {name:"diecut"}
            set placed_file to make new placed item ¬
                with properties {file path:("the_shape_to_embed.ai")}
            embed placed_file without dialogs

显然,没有办法通过剪切通过placed item导入的矢量艺术品的路径来避免额外的分组

通过让Applescript打开要导入的矢量艺术,将有问题的图层内容复制到剪贴板,并将其粘贴到另一个Illustrator文件中(粘贴到选定的图层中),解决了此问题

工作起来很有魅力