Skip to main content
Known Participant
November 12, 2024
Answered

Make an action or shortcut for file info panel

  • November 12, 2024
  • 2 replies
  • 647 views

Is there a way to make an action, preferably, or assign a shortcut to the save button in the file info panel?

This topic has been closed for replies.
Correct answer r-bin
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 each
description, except for fixing all the little mistakes. So right now I have
the F1 key set to open the file info panel, then I have to highlight the
description field manually Paste in the copied description and then hit the
return key and then hit command S and command W. Then I can upload the
image to the print on demand site that I’m using. I’m just trying to
eliminate the whole left-handed command S command W because I’m developing
arthritis in That hand. It would be easier just to set up either an F Key
to initiate an action to OK save and close the file or a one click action.

quote
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); 

 

 

2 replies

Stephen Marsh
Community Expert
Community Expert
November 12, 2024

I don't unserstand, why doesn't the Enter/Return key work on your keyboard to save and close the File Info window?

dcsimagesAuthor
Known Participant
November 13, 2024

It does, but it doesn't seem to be recordable.
I'd like to create a one click action to OK the entries, save the file and then close the file.
Just trying to cut down on repetative stress.

r-binCorrect answer
Legend
November 14, 2024
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 each
description, except for fixing all the little mistakes. So right now I have
the F1 key set to open the file info panel, then I have to highlight the
description field manually Paste in the copied description and then hit the
return key and then hit command S and command W. Then I can upload the
image to the print on demand site that I’m using. I’m just trying to
eliminate the whole left-handed command S command W because I’m developing
arthritis in That hand. It would be easier just to set up either an F Key
to initiate an action to OK save and close the file or a one click action.

quote
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); 

 

 

dcsimagesAuthor
Known Participant
November 12, 2024

I meant OK button.