Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need a command to open the last saved file. I want to open the last file by hot key
Solved! Go to Solution.
I need a command to open the last saved file. I want to open the last file by hot key
Solved! Go to Solution.
Its a bit hacky because it uses optionVar to read out the filepath from the UI of the recent files. There is probably a more elegant way to do this using the API. But this MEL script does what you want:
string $recent[] =`optionVar -q RecentFilesList`;
string $last = $recent[(size($recent)-1)];
file -o $last;
I hope it helps!