Answered
Make an action or shortcut for file info panel
Is there a way to make an action, preferably, or assign a shortcut to the save button in the file info panel?
Is there a way to make an action, preferably, or assign a shortcut to the save button in the file info panel?
I’m entering unique information into each description field about an image.Luckily I have speech to text so that I don’t have to type out eachdescription, except for fixing all the little mistakes. So right now I havethe F1 key set to open the file info panel, then I have to highlight thedescription field manually Paste in the copied description and then hit thereturn key and then hit command S and command W. Then I can upload theimage to the print on demand site that I’m using. I’m just trying toeliminate the whole left-handed command S command W because I’m developingarthritis in That hand. It would be easier just to set up either an F Keyto initiate an action to OK save and close the file or a one click action.
By @dcsimages
Try this script and assign F1 to it
// pop the file info dialog
var d = new ActionDescriptor();
var r = new ActionReference();
r.putProperty(stringIDToTypeID("property"), stringIDToTypeID("fileInfo"));
r.putEnumerated(stringIDToTypeID("document"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
d.putReference(stringIDToTypeID("null"), r);
d.putObject(stringIDToTypeID("to"), stringIDToTypeID("fileInfo"), new ActionDescriptor());
executeAction(stringIDToTypeID("set"), d, DialogModes.ALL);
// save and close current document
activeDocument.close(SaveOptions.SAVECHANGES);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.