PROBLEM

Running an AML via a Python script causes notepad.exe to open

Last Published: April 25, 2020

Description

An AML can be run via the geoprocessing tools at ArcGIS 9.0 with a Python script. Occasionally, the AML will not run, and in it's place notepad.exe will open and display the AML.

Cause

The Windows OS is associating files ending with .AML as Notepad.exe files.

Solution or Workaround



  1. In Windows Explorer or My Computer, click Tools > Folder Options.
  2. Click the Files Types tab.
  3. Scroll through the list of registered file types to the AML extension listing.

    Note:
    Note that the AML extension is associated with Notepad.

  4. Select the AML record, and the ADVANCED button will change to read RESTORE. Click RESTORE.
  5. The File Types value of the AML record will change to AMLFILE. AML scripts will now run correctly and Notepad will not display during their execution.

Article ID:000007084

Software:
  • ArcMap 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic