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

How to get rid of "relink popup" during script execution

Community Beginner ,
Nov 10, 2020 Nov 10, 2020

hi, 

I'm trying to prevent this popup to showup during the execution of my script. Now it shows up every time the script open a file with broken referencies. This is a problem because it prevents my script to be executed as an automatic job, and it requires that the user manually push "ok" or "cancel".

Any thoughts about? I'm getting running out of ideas.

thanks anyone could help.

test.png

TOPICS
Actions and scripting , Windows
827
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

correct answers 1 Correct answer

LEGEND , Nov 10, 2020 Nov 10, 2020

 

displayDialogs = DialogModes.NO, open(File('~/desktop/BrokenLink.psd'))

 

or

 

sTT = stringIDToTypeID, fle = File('~/desktop/BrokenLink.psd');
(dsc = new ActionDescriptor()).putPath(sTT('null'), fle)
executeAction(sTT('open'), dsc, DialogModes.NO)

 

Translate
Adobe
LEGEND ,
Nov 10, 2020 Nov 10, 2020

 

displayDialogs = DialogModes.NO, open(File('~/desktop/BrokenLink.psd'))

 

or

 

sTT = stringIDToTypeID, fle = File('~/desktop/BrokenLink.psd');
(dsc = new ActionDescriptor()).putPath(sTT('null'), fle)
executeAction(sTT('open'), dsc, DialogModes.NO)

 

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 ,
Nov 10, 2020 Nov 10, 2020

WOW, thanks I didn't know about this "comma" thing after 

 DialogModes.NO

It works! 

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 ,
Nov 10, 2020 Nov 10, 2020

@Kukurykus but what about smartobjects? when the broken link is inside a .psb this approach doesn't seem to work:

 

executeAction(
stringIDToTypeID("placedLayerEditContents")
, descriptor, DialogModes.NO);

 

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
LEGEND ,
Nov 10, 2020 Nov 10, 2020
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 ,
Nov 10, 2020 Nov 10, 2020

thanks, but I don't need to amend the link, I just need to prevent the popup showing up, and to automatically continue the exectution of my script.

My issue is that the popup requires to be manually closed.

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
LEGEND ,
Nov 10, 2020 Nov 10, 2020

Then 'Export Contents' or 'Convert to Linked' and open exported / linked file by earlier script, or else 'Convert to Layers', do what you have on them and put them inside main smart object again.

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 ,
Nov 11, 2020 Nov 11, 2020

thanks, now the only thing I miss is how to convert a liked smartobject to a "regular" one.

I'm opening a new thread for this.

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
LEGEND ,
Nov 11, 2020 Nov 11, 2020
LATEST
runMenuItem(stringIDToTypeID('placedLayerConvertToEmbedded'))
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