Copy link to clipboard
Copied
I'd like to be able to save a file from a script (actually, from a CEP extension) without having it added to the 'recent files' list in Illustrator.
I've tried to use the technique suggested here: https://community.adobe.com/t5/illustrator/open-from-recent-documents-list-with-a-script/td-p/894889... to simply remove the files I don't want from the recent files history, but it seems like when I read those preferences, they're stale (as in, the new files that have been opened or created since Illustrator was started aren't included.) Is there a workaround for this?
Of course, it would be better to just have a way to specify when saving or opening a file, not to add it to the recent list. Is that possible from the scripting API?
Thanks,
- Brian
Copy link to clipboard
Copied
Hi,
As per thethread that you have shared here is the updated version
var pref = app.preferences.getStringPreference("plugin/MixedFileList/file0/name");
alert(pref);
Copy link to clipboard
Copied
Thanks for the update! I don't see these in my preferences file on disk ("Adobe Illustrator Prefs")... are they stored somewhere else? How many entries should I expect are present (is there another preference that will tell me?) Is there a way to get a list of all the preferences in use? (I noticed that there is a data marker and a size marker parallel to this in the preferences file; are there similar parallel items here?)
I look forward to trying this out!
- Brian
Copy link to clipboard
Copied
Hi,
Are you using Mac or Windows?
You canread following articleto find location of Illustrator preferences file.
Let us know if you are able to find that file. When you are able to find that file. You can search for the word " MixedFileList", which contains information about recent files. What I tried is I removed all values inside the file0 object and it removed the recent file from the list. But this file is always updated when you quit the application.
So, here are the steps that I did manually
1. Create new file
2. Save it somewhere on my disk.
3. Quit Illustrator
4. Open Preference file and empty object file0 and save the file.
5. Open Illustrator again and file not present in the recent list.
Let us know how it goes for you.