• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clicking a dialog from Applescript?

New Here ,
Nov 03, 2010 Nov 03, 2010

Copy link to clipboard

Copied

I'm processing a large number of files and many of these files came from a CS3 environment where the artboard is singular rather than plural. Anyhow, I think this is the reason that I'm getting a "Convert To Artboards" dialog when I open these files. If I hit OK, then everything is good, but this is an automated process and I need to do two things through script:

1. Detect when the aforementioned dialog is present

2. Press the OK button

Any ideas? A second option would be to preprocess all of these files, but I think I still run into the same issue if I want to automate that.

TOPICS
Scripting

Views

464

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Nov 03, 2010 Nov 03, 2010

Copy link to clipboard

Copied

Don - Haven't had a chance to test yet, but have you tried the new properties in the OpenOptions data class for dealing with artboards?

Options -
convert crop area to artboard

convert tiles to artboard

create artboard with artwork bounding box

preserve legacy artboard

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2010 Nov 03, 2010

Copy link to clipboard

Copied

LATEST

prevent dialogs from showing by setting the

UserInteractionLevel = aiDontDisplayAlerts

at the beginning of your code

and

UserInteractionLevel = aiDisplayAlerts

at the end of your code

above sample code works for VBA in Windows, do the quivalent for AS

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines