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

Inserted menu item ‘Save as’ in action, opens different folder

Community Beginner ,
May 18, 2024 May 18, 2024

When I do a manual 'save as' , the dialogue box opens to where the psd was originally opened from as expected.. 

however , when I run an action containing the step 'save as' (as an inserted menu item) , it opens the last folder used ..

Ive tried all the usual resetting pref etc , and both 'save to original file' and 'legacy save' are both checked .. 

i just don't understand why ctrl+sh+s should behave differently to the 'save as' step in an action ?

 

TOPICS
Actions and scripting , Windows
461
Translate
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
Adobe
Community Expert ,
May 19, 2024 May 19, 2024

Could you please post screenshots with the pertinent Panels (Toolbar, Layers, Actions, Options Bar, …) visible and the Action fully expanded

Translate
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
Community Beginner ,
May 19, 2024 May 19, 2024

Hey thanks , but there's nothing of interest to show in a screenshot everything normal and the save action doesn't expand as it's a menu command inserted (I have it at the start of every print action as I want to save the psd in case ps crashes on print , which is another issue in another thread 😆 )

Translate
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
Community Expert ,
May 19, 2024 May 19, 2024

@CanvasHut 

 

I can't reproduce this result. I tested on an Intel Mac with Ps 25.7.0, File Handling Prefs set to "Save As to Original Folder" and "Legacy Save As" and got the same result from manually running Save As vs. Save As inserted into an action. If the open file has a backing path (i.e. has been previously saved), the default Save As location is to the same directory as the open file for both methods. EDIT: For a new unsaved file, the last Save As location in that session is remembered.

Translate
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
Community Beginner ,
May 19, 2024 May 19, 2024

Thanks for reply , I'm on Ps 25.7 too but windows version .. ive tested on version 20.0.9 of ps and there's no issue there so 🤷🏻‍:male_sign: 

Translate
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
Community Expert ,
May 19, 2024 May 19, 2024

@CanvasHut wrote:

Thanks for reply , I'm on Ps 25.7 too but windows version .. ive tested on version 20.0.9 of ps and there's no issue there so 🤷🏻‍:male_sign: 


 

The only other option that I can think of would be to use a "helper script" to replace this action step, which would require the script to be available on all installations. Happy to help with the scripted step if this would help.

Translate
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
Community Beginner ,
May 20, 2024 May 20, 2024

oh ok yes , so such script a could 'save as' to original folder ?
That's all I need it to do , (and with the original file name in the file field)

Thanks

Translate
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
Community Expert ,
May 20, 2024 May 20, 2024

@CanvasHut wrote:

oh ok yes , so such script a could 'save as' to original folder ?
That's all I need it to do , (and with the original file name in the file field)

Thanks


 

You can try this:

 

#target photoshop

function s2t(s) {
    return app.stringIDToTypeID(s);
}
var descriptor = new ActionDescriptor();
try {
    var docPath = app.activeDocument.path;
} catch (e) {
    var docPath = '~/Desktop';
}
var docName = app.activeDocument.name.replace(/\.[^\.]+$/, '');
descriptor.putObject(s2t("as"), s2t("photoshop35Format"), descriptor);
descriptor.putPath(s2t("in"), new File(docPath + '/' + docName));
descriptor.putBoolean(s2t("lowerCase"), true);
executeAction(s2t("save"), descriptor, DialogModes.ALL);

 

Instructions for saving the code and use:

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

Translate
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
Community Beginner ,
May 20, 2024 May 20, 2024

Hey thanks for that , I tried it but unfortunately it doesnt make a difference (still directs to last used folder, not original folder..)
Strange huh

Its not the end of the world , thanks for your help , I'm gonna try installing on a different PC to see if it's same or not

Translate
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
Community Beginner ,
May 21, 2024 May 21, 2024

Installed ps ver 25.7.0 on another pc , and still same , I also have 20.0.9 on same pc which is fine as has been every other version (I've used photoshop for 20 years).. really strange, oh well as i say its not the end of world xD  but ya know like everyone these little things do niggle 😕

Translate
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
Community Expert ,
May 22, 2024 May 22, 2024
LATEST

Strange indeed! I'd backup actions/presets and reset preferences to see if that resolves the issue.

Translate
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
Community Expert ,
May 19, 2024 May 19, 2024

Have you attempted a preference reset if the issue occurs solely on your machine?

Translate
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
Community Beginner ,
May 20, 2024 May 20, 2024

Yea I do this alot as I get print issues too ..
In fact so much so, that I keep a copy of MachinePref.psp with my settings saved, so i can replace on reset.. (I recommend)
Thanks

Translate
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