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

Open from Recent Documents List with a Script

Participant ,
Mar 24, 2017 Mar 24, 2017

Copy link to clipboard

Copied

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!

TOPICS
Scripting

Views

789

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

correct answers 1 Correct answer

Valorous Hero , Mar 24, 2017 Mar 24, 2017

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 sniffin

...

Votes

Translate

Translate
Adobe
Valorous Hero ,
Mar 24, 2017 Mar 24, 2017

Copy link to clipboard

Copied

LATEST

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.

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