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

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

Community Beginner ,
Nov 10, 2020 Nov 10, 2020

Copy link to clipboard

Copied

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

Views

362

Translate

Translate

Report

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)

 

Votes

Translate

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

Copy link to clipboard

Copied

 

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)

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

 DialogModes.NO

It works! 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST
runMenuItem(stringIDToTypeID('placedLayerConvertToEmbedded'))

Votes

Translate

Translate

Report

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