1 Reply Latest reply on Mar 24, 2017 11:28 AM by Silly-V

    Open from Recent Documents List with a Script

    zertle Level 2

      Hey!

       

      Does anyone know if it's possible to access the File > Recent Documents list with a script? Sorry if this has already been asked, I tried to do some digging but haven't been able to find anything :-(

       

      Thanks!

        • 1. Re: Open from Recent Documents List with a Script
          Silly-V Adobe Community Professional

          You can try to get this information from the Preference file which is located here on windows:

          C:\Users\<UserName>\AppData\Roaming\Adobe\Adobe Illustrator 21 Settings\en_US\x64\Adobe Illustrator Prefs

           

          When I scroll all the way down to around line 5500, there's the list of files:

          /FileList {

          /file10 {

           

          So, you can actually access their information while Illustrator is running, like so:

                  var pref = app.preferences.getStringPreference("plugin/FileList/file0/name");

                  alert(pref);

          After sniffing around like so, I am under the impression that they order the files by most recently opened, so do not expect "file0" to be the file at the very top.

          1 person found this helpful